A Horizontal Bar Graph in Stata

You can create a horizonal bar chart in Stata using the graph hbar command. You can also choose the “Horizontal” option in the Graphics > Bar chart menu window. This option is located in the top right of the Main tab.

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

sysuse census, clear
graph hbar (sum) marriage divorce, over(region) bargap(20)