I would like to draw a graph using multiple bars using my data below
with the variable 'frac' on the y axis , over 'agegrp' and then over the
'finalresult' variable. The following command will plot this: graph bar
(asis) frac, over(agegrp) over(finalresult)
However how do I format the plot so I get a common colour for each
agegrp?
agegrp finalresult frac
20-24 2 33.3
20-24 3 80.0
20-24 7 100.0
20-24 8 83.3
25-29 1 100.0
25-29 2 0
25-29 3 66.7
25-29 4 100.0
25-29 7 50.0
25-29 8 55.6
30-34 3 50.0
30-34 8 66.7
35-39 2 0
35-39 3 100.0
35-39 7 100.0
35-39 8 25.0
40-44 2 0
40-44 3 50.0
40-44 7 100.0
40-44 8 25.0
45-49 2 0
45-49 3 0
45-49 4 100.0
45-49 8 0
50-54 3 0
50-54 8 0
55-59 2 0
55-59 3 0
55-59 8 33.3
60-64 2 0
60-64 4 100.0
60-64 7 100.0
60-64 8 0
>65 8 0
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/