Reputation: 8182
Can I use ggplot2
to produce a violin plot? Perhaps using some variation of geom_boxplot()
?
Upvotes: 18
Views: 7850
Reputation: 72741
A quick googling returns this site, which uses geom_ribbon to draw violin plots for Figure 3.14.
Note to anyone catching up
As @Ben points out below, geom_violin() is now the preferred method for producing violin plots in ggplot2.
Upvotes: 5
Reputation: 42283
Version 0.9.0 includes the geom_violin
: http://docs.ggplot2.org/current/geom_violin.html
Upvotes: 30