Jump to content

Violin plot

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Pavel N. Krivitsky (talk | contribs) at 18:44, 19 May 2009 (Added reference to lattice R package (which also does violin plots) and fixed a spelling error.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Example of a Violin plot

Violin plots are a method of plotting numeric data. A violin plot is a combination of a box plot and a kernel density plot. Specifically, it starts with a box plot. It then adds a rotated kernel density plot to each side of the box plot.[1].

The Violin plot is similar to box plots, except that they also show the probability density of the data at different values (in the simplest case this could be a histogram). Typically violin plots will include a marker for the median of the data and a box indicating the interquartile range, as in standard box plots. Overlaid on this box plot is a kernel density estimation.

Violin plots are available as extensions to a number of software packages, including R through the vioplot and lattice libraries, and Stata through the vioplot add-in. [2]

Reference

  1. ^ VIOLIN PLOT. www.itl.nist.gov. Retrieved 14 October 2008.
  2. ^ Hintze, Jerry L., and Ray D. Nelson. 1998. "Violin Plots: A Box Plot-Density Trace Synergism." The American Statistician 52(2):181-84.