Geom.violin
Draw violin plots.
Aesthetics
Aesthetics used directly:
x: Group categorically on the X-axisy: Y-axis position.width: Density at a givenyvalue.color(optional): Violin color. A suitable discrete variable is needed here. See example below.
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.
Examples
Dsing = dataset("lattice","singer")
Dsing[:Voice] = [x[1:5] for x in Dsing[:VoicePart]]
plot(Dsing, x=:VoicePart, y=:Height, color=:Voice, Geom.violin)