I have the following simple working example using a dataset made available by Stata:
I have attached the resulting graph as a .png file.
What I want to do is create a separate axis for city and age_grp. After consulting a different topic posed on this site, I still could not figure it out. I do not wish to treat -year- as a time variable as the analysis I am doing involves two categorical variables like -sex- and -race-. The data that I am actually using in my analysis is much too different to be compared on the same axis.
Let me know if I need to add or clarify anything to this post.
Code:
webuse hbp2, clear graph bar city age_grp, over(year) over(sex) blabel(bar, format(%4.1f)) intensity(75)
What I want to do is create a separate axis for city and age_grp. After consulting a different topic posed on this site, I still could not figure it out. I do not wish to treat -year- as a time variable as the analysis I am doing involves two categorical variables like -sex- and -race-. The data that I am actually using in my analysis is much too different to be compared on the same axis.
Let me know if I need to add or clarify anything to this post.
Comment