• Laura Whiting

Violin Plot in Stata

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:


0 views

© 2020 by Survey Design and Analysis Services. 

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube