Bar charts are another graphing tool that can be used for example when exploring relationships between variables. Let’s look at an example.
sysuse nlsw88, clear
graph bar (mean) wage, over(grade)
In this example we’re graphing the mean of wage at each grade level. We can also look at the wage frequency at each grade level:
graph bar (count) wage, over(grade)