View source: R/facet_histogram.R
| facet_histogram | R Documentation |
Faceted distribution of variables as histograms
facet_histogram(
data,
...,
statistic = c("mean", "median"),
.scales = c("fixed", "free", "free_x", "free_y"),
.colour = "grey80"
)
data |
The data |
... |
The variables to plot. Unquoted, dplyr way |
statistic |
One of "mean", "median". Defaults to "mean" |
.scales |
Character. The |
.colour |
The colour of the bars. Defaults to "grey80" |
A ggplot
facet_histogram( mtcars, everything(), .scales = "free", statistic = "median" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.