Plot the histogram and density of the variable
plotHistogram(var, varName = "Variable", density = TRUE, ...)
(float) vector of values to plot
(str) Name of the variable to plot
(bool) If TRUE plot overlay the density on the variable
Passes arguments to ggplot2::geom_histogram, e.g. bins=20
,
binwidth=1
Grob (ggplot object)