Bar charts in Stata

May 25, 2019

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)

Example bar chart

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)

Example bar chart


Profile picture

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin

2024 © Johan Osterberg