Description Usage Arguments Value Examples
Plot a histogram
1 | gghistogram(data, variable, mapping = NULL, ...)
|
data |
A data frame |
variable |
Name of the variable to plot |
mapping |
A named list of arguments to |
... |
Parameters to be passed to |
A ggplot
A ggplot
1 2 3 | mtcars$vs <- factor(mtcars$vs)
gghistogram(mtcars, "mpg")
gghistogram(mtcars, "mpg", mapping = list(fill = "vs"), alpha = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.