geom_violin| ggplot examples

geom_violin| ggplot examples

Quick Start

library(ggplot2)

p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_violin()+ geom_point() + theme_light()

scale

p + geom_violin(scale = "width")+ theme_light()

img

draw_quantiles

p + geom_violin(aes(fill = factor(cyl)),draw_quantiles = c(0.25, 0.5, 0.75))

img.png

Author

Karobben

Posted on

2020-08-13

Updated on

2024-01-11

Licensed under

Comments