title: violin author: Daniel C. Jones part: Geometry order: 1016 ...
Draw violin plots.
Stat.violin
Aesthetics used directly:
x
: Group categorically on the X-axisy
: Y-axis position.width
: Density at a giveny
value.
With the default statistic Stat.violin
, only the following need be defined:
x
(optional): Group categorically on the X-axis.y
: Sample from which to draw the density plot.
using RDatasets
using Gadfly
Gadfly.set_default_plot_size(14cm, 8cm)
plot(dataset("lattice", "singer"), x="VoicePart", y="Height", Geom.violin)