powered by
Half violin plot
geom_flat_violin( mapping = NULL, data = NULL, stat = "ydensity", position = "dodge", trim = TRUE, scale = "area", show.legend = NA, inherit.aes = TRUE, ... )
A layer for a ggplot2::ggplot object, similar to e.g. ggplot2::geom_violin.
ggplot2::ggplot
ggplot2::geom_violin
The mapping
data.frame
statistic (don't change)
position dodge
Logical
Scale (don't change)
other arguments
ggplot2::geom_violin(), which provided the basis of this function.
ggplot2::geom_violin()
library(ggplot2) data(diamonds) ggplot(diamonds, aes(cut, carat)) + geom_flat_violin() + coord_flip()
Run the code above in your browser using DataLab