Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: graph hbox with ylabel(angle())


From   tess stafford <bunnyweeds@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: graph hbox with ylabel(angle())
Date   Mon, 16 Feb 2009 16:10:44 -0500

With regards to the "graph hbox" command, I cannot get the suboption "angle()" to work with "ylabel".  A simplified version of my code is:

graph hbox var1, over(var2) medtype(cline) medline(lcolor(none)) /*
    */ ylabel(2001.649 "Fa2001" 2002.422 "Sp2002" 2002.649 "Fa2002" 2003.422 "Sp2003",labsize(small) angle(45) grid)

The "labsize()" suboption seems to work fine, but the "angle()" suboption does nothing.  When I change the code to "graph box" instead, "angle()" works fine.  Similarly, "angle()" works fine for the other axis as in "over(var2,label(angle(45))).  I don't understand why it won't work for the ylabel.

Does anyone see anything wrong with my code?  If not, is this a glitch in the language?  Can we trick it into working?  I know I can manually go in and alter the angle of the labels once Stata has generated the graph, but I will likely be making many of
these graphs over different groups in the data and potentially tweaking different aspects of them so it would be very time consuming to have to continually manually alter them.

I'm using Stata 10/MP, by the way.

Thanks for your help!
Tess
_________________________________________________________________
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
*
*   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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index