Usage
stat_ydensity(mapping = NULL, data = NULL, geom = "violin",
position = "dodge", adjust = 1, kernel = "gaussian", trim = TRUE,
scale = "area", na.rm = FALSE, ...)
Arguments
trim
If TRUE
(default), trim the tails of the violins
to the range of the data. If FALSE
, don't trim the tails.
scale
if "area" (default), all violins have the same area (before trimming
the tails). If "count", areas are scaled proportionally to the number of
observations. If "width", all violins have the same maximum width.
na.rm
If FALSE
(the default), removes missing values with
a warning. If TRUE
silently removes missing values.
mapping
The aesthetic mapping, usually constructed with
aes
or aes_string
. Only needs to be set
at the layer level if you are overriding the plot defaults. data
A layer specific dataset - only needed if you want to override
the plot defaults.
geom
The geometric object to use display the data
position
The position adjustment to use for overlappling points
on this layer
kernel
kernel used for density estimation, see
density
for details ...
other arguments passed on to layer
. This can
include aesthetics whose values you want to set, not map. See
layer
for more details.