Create an Easy Categorical Pie Chart in Stata

Use the graph pie command in Stata to create pie charts of categorical variables. The plabel(_all sum) option can be added to show the frequency counts on top of the pie pieces.

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

sysuse auto, clear
graph pie, over(rep78) plabel(_all sum) by(foreign)