Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 690 Bytes

geom_violin.md

File metadata and controls

42 lines (26 loc) · 690 Bytes

title: violin author: Daniel C. Jones part: Geometry order: 1016 ...

Draw violin plots.

Default Statistic

Stat.violin

Aesthetics

Aesthetics used directly:

  • x: Group categorically on the X-axis
  • y: Y-axis position.
  • width: Density at a given y 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.

Examples

using RDatasets
using Gadfly

Gadfly.set_default_plot_size(14cm, 8cm)
plot(dataset("lattice", "singer"), x="VoicePart", y="Height", Geom.violin)