How do I draw a violin plot using ggplot2?

Sam picture Sam · Mar 3, 2011 · Viewed 7.8k times · Source

Can I use ggplot2 to produce a violin plot? Perhaps using some variation of geom_boxplot()?

Answer

Ben picture Ben · Mar 3, 2012

Version 0.9.0 includes the geom_violin: http://docs.ggplot2.org/current/geom_violin.html