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.

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, wvioplot, UsingR, lattice, and ggplot2 libraries, and Stata through the vioplot add-in.

Violin plots are also quite similar to the turnip graph used in STATA.

Famous quotes containing the words violin and/or plot:

    “Carry hate
    In front of you and harmony behind.
    Be deaf to music and to beauty blind.
    Win war. Rise bloody, maybe not too late
    For having first to civilize a space
    Wherein to play your violin with grace.”
    —Gwendolyn Brooks (b. 1917)

    “Ends in themselves, my letters plot no change;
    They carry nothing dutiable; they won’t
    Aspire, astound, establish or estrange.”
    —Philip Larkin (1922–1986)