I am having trouble labeling the x-axis of my graph, and can't figure out why. It would be greatly appreciated it someone could help me figure out why I am getting the following error message:
My command is as follows:
. graph bar pctnonhc pctinj pctpill pctnorp, over(round) stack title("Use of any contraception in HIV+ women, by round") legend(cols(4) label(1 "Non-hormonal") label(2 "Injectables") label(3 "Pills") label(4 "Norplant")) ytitle("Percent using method") xtitle("Round")
xtitle(Round") not allowed, " invalid name
r(198);
Also, I have a question regarding the Graphics Editor in Stata10. After making changes in the Graphics Editor, is there any way to get Stata to tell you the written code that could have been used to obtain the same results? It might be helpful in learning tricks on code writing for graphics.
Cheers,
Chelsea
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/