plot_histogram | R Documentation |
A shortcut to make a ggplot2 histogram which makes an attempt to set reasonable bin widths and set the scale to log if that seems a good idea.
plot_histogram(
df,
binwidth = NULL,
log = FALSE,
bins = 500,
adjust = 1,
fillcolor = "darkgrey",
color = "black"
)
df |
Dataframe of lots of pretty numbers. |
binwidth |
Width of the bins for the histogram. |
log |
Replot on the log scale? |
bins |
Number of bins for the histogram. |
adjust |
The prettification parameter in the ggplot2 density. |
fillcolor |
Change the fill colors of the plotted elements? |
color |
Change the color of the lines of the plotted elements? |
Ggplot histogram.
[ggplot2]
## Not run:
kittytime = plot_histogram(df)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.