Example 2: Crossing with numerical variablesNumerical variables should be binned in order to plot them with an histogram, otherwise the plot is not showing information, as it can be seen here:
Equal frequency binningThere is a function included in the package (inherited from Hmisc package) : equal_freq, which returns the bins/buckets based on theequal frequency criteria. Which is -or tries to- have the same quantity of rows per bin.
For numerical variables, cross_plot has by default theauto_binning=T, which automatically calls the equal_freq function with n_bins=10 (or the closest number).