• Laura Whiting

Violin Plot in Stata

Updated: Aug 27, 2020

A violin plot is a modified box-plot which adds the estimated kernel density to each plot. To draw this plot in Stata you will need a user-written command called vioplot. This can be easily installed within Stata using the following command:

An example of a violin plot is shown below:

To generate the plot above, use the following Stata commands:

For a comprehensive exploration of the many Stata graph commands and options, check out the book A Visual Guide to Stata Graphics, 3rd Edition.

479 views0 comments

© 2020 by Survey Design and Analysis Services. 

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube