Description Usage Arguments Value See Also Examples
View source: R/pretty_histogram.r
Uses a set of defaults that I like to generate a histogram of either a numeric or factor
1 | PrettyHistogram(v, force.factor = FALSE, sort.factor = TRUE, ...)
|
v |
array with data that goes into histogram |
force.factor |
logical, convert input to factor so you ensure a percentage for each level |
sort.factor |
should factor be reordered so it goes from most to least common? |
... |
any additional argument passed on to |
ggplot object
ggplot2::geom_histogram
which this function wraps
1 2 | PrettyHistogram(iris$Sepal.Length)
PrettyHistogram(iris$Species)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.