Description Usage Arguments Value Examples
View source: R/ggdensityplot.R
Plot a density
1 | ggdensityplot(data, variable, plot_type = "histogram", ...)
|
data |
A data frame |
variable |
Name of the variable to plot |
plot_type |
One of "histogram", "density", "boxplot" or "violin" |
... |
Extra parameters to be passed to either one of |
A ggplot
1 2 | ggdensityplot(mtcars, "mpg", mapping = list(fill = "vs"), alpha = 0.5)
ggdensityplot(mtcars, "mpg", x = "cyl", plot_type = "boxplot")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.