Drawing a complicated bar graph in Stata
I am trying to draw a bar graph with a bar for each separate variable on
the y axis and then split them according to a category variable.
So, my variables to put in the x-axis are:
phys
emo
soc
sch
They are all scores from 0 to 100 which show quality of life and I want to
split each of these on the x axis by a variable with two categories,
either moderate or high. The only thing I can seem to do is:
gr bar phys emo soc sch, over(Village)
which splits the x axis into Village (either high or moderate) and then
splits each of these into 4 categories of phys, emo, soc, sch. Since the
four variables are all separate but have the same score, they can't be a
category in Stata since it labels the x axis 0-100 which is not what I
want.
If anyone can think of a way to help or to combine the four into one
variable so that I can use the over(x) option it would be very helpful!
No comments:
Post a Comment