View source: R/geom_split_violin.R
geom_split_violin | R Documentation |
This function is to plot the split violin graph.
It is built on ggplot2::geom_violin()
,
and adopted from jan-glx's stackoverflow answer https://stackoverflow.com/a/45614547
A violin plot is a compact display of a continuous distribution.
It is a blend of ggplot2::geom_boxplot()
and ggplot2::geom_density()
:
A violin plot is a mirrored density plot displayed in the same way as a boxplot.
A split violin plot allows for odd violins to be plotted to the left,
and even violins to be plotted to the right
geom_split_violin( mapping = NULL, data = NULL, stat = "ydensity", position = "identity", ..., draw_quantiles = NULL, trim = TRUE, scale = "area", na.rm = FALSE, show.legend = NA, inherit.aes = TRUE )
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A function will be called with a single argument, the plot data.
The return value must be a |
stat |
Use to override the default connection between |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
Other arguments passed on to |
draw_quantiles |
If |
trim |
If |
scale |
If |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.