A Second Cat Plot in Stata

To use the catplot command in Stata you will need to install it from the SSC if you haven’t already. To do this, use the following command in Stata:

ssc install catplot

To generate this plot in Stata, use the following commands:

sysuse auto, clear
catplot rep78, over(for) stack asyvars perc(for) blabel(bar, position(center) format(%3.1f)) legend(off)

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