Simple function to create a histogram
histogram(
vector,
bins = NULL,
theme = ggplot2::theme_bw(),
xLabel = NULL,
yLabel = "Count"
)
A variable or vector.
The number of bins; when 0, either the number of unique
values in vector
or 20
, whichever is lower.
The ggplot2 theme to use.
Labels for x and y axes; variable name is used for x axis if no label is specified.
A ggplot2 plot.
rosetta::histogram(mtcars$mpg);