stat_ydensity(mapping = NULL, data = NULL,
geom = "violin", position = "dodge", adjust = 1,
kernel = "gaussian", trim = TRUE, scale = "equal",
na.rm = FALSE, ...)
TRUE
(default), trim the tails of
the violins to the range of the data. If FALSE
,
don't trim the tails.FALSE
(the default), removes
missing values with a warning. If TRUE
silently
removes missing values.aes
or aes_string
. Only
needs to be set at the layer level if you are overriding
the plot defaults.density
for detailsdensity
for details# See geom_violin for examples
# Also see stat_density for similar examples with data along x axis
Run the code above in your browser using DataLab