geom_split_violin.Rd
Draws split violin plot using ggplot2. Credit to jan-glx (https://stackoverflow.com/questions/35717353/split-violin-plot-with-ggplot2)
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
)
ggplot mapping
data.frame
ggplot identity
ggplot position
additional parameters to pass to layer()
draw quantiles. Default is NULL
Trim data. Default is True.
Default is area.
Default is na.rm
Default is NA
Default is TRUE
ggplot object
# split violin plot
ggplot(my_data, aes(x, y, fill = m)) + geom_split_violin()
#> Error in ggplot(my_data, aes(x, y, fill = m)): object 'my_data' not found