Thanks to Kit Baum, a new violinplot package is available from SSC. Type
to install the package. Stata 15 or newer and the latest versions of dstat, moremata, palettes, colrspace are required, type
to install or update these packages.
For a few examples see https://github.com/benjann/violinplot/.
violinplot provides an alternative to the existing vioplot package, which is also available from SSC. Both packages have their advantages and disadvantages. A main advantage of vioplot is that it features an over() option to draw plots by subpopulations. Such an option does not exist in violinplot (use command separate if you want to display results by subpopulations; see the examples). A main advantage of violinplot is that it is more flexible with respect to how the density curves are estimated and plotted.
ben
Code:
. ssc install violinplot
Code:
. ssc install dstat, replace . ssc install moremata, replace . ssc install palettes, replace . ssc install colrspace, replace
For a few examples see https://github.com/benjann/violinplot/.
violinplot provides an alternative to the existing vioplot package, which is also available from SSC. Both packages have their advantages and disadvantages. A main advantage of vioplot is that it features an over() option to draw plots by subpopulations. Such an option does not exist in violinplot (use command separate if you want to display results by subpopulations; see the examples). A main advantage of violinplot is that it is more flexible with respect to how the density curves are estimated and plotted.
ben
Comment