Catplot Stata. Catplot available for download from ssc thanks to kit baum a new package catplot has been. Sysuse auto clear catplot rep78 foreign percent rep78 blabel bar preserve local np1 n 1 expand 2 replace rep78 6 in np1 l gen extra n np1 label def rep78 6 total label val rep78 rep78 catplot rep78 foreign percent rep78 extra blabel bar restore on some details.
For examples see sj 4 2 gr0004. Sysuse auto catplot rep78 catplot rep78 var1opts gap 0 catplot rep78 var1opts gap 2 in general catplot is mainly a wrapper that calculates frequencies or percents and then lets graph do almost all the work. Catplot is from ssc.
Your data structure is unfriendly for what you want.
That is its categories vary fastest. A twoway graph with catplot works like this. The first named variable is innermost on the display. That is its categories vary fastest.