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

From |
David Airey <david.airey@vanderbilt.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: graph hbox with ylabel(angle()) |

Date |
Tue, 17 Feb 2009 07:02:11 -0600 |

-Dave On Feb 17, 2009, at 5:50 AM, Nick Cox wrote:

My experiments match yours. It looks like a glitch in the -graph-code.You can do this something similar -- but not identical -- with -stripplot- from SSC.There's also scope for hybridising box plots and strip plots to getoversome of the limitations of box plots. For example, sysuse auto egen loq = pctile(mpg), by(foreign) p(25) egen upq = pctile(mpg), by(foreign) p(75) stripplot mpg, ms(none) over(foreign) box(barw(0.2)) addplot(scatter foreign mpg if !inrange(mpg, loq, upq)) Although it's not in the code above, xla(, ang(45) labsize(small)) works with -stripplot- too. Nick n.j.cox@durham.ac.uk tess stafford As far as I understand, ylabel for "graph hbox" refers to the x-axis,which is the axis that I am trying to modify. The angle suboptiondoesseem to work in over(var2,label(angle(45))), but this modifies the y-axis labels and I am trying to modify the x-axis labels. SteichT@RJRT.comThe ylabel command for hbar is just label() and is a suboption insideof the over() option:over(xxx, label(angle(forty_five)))tess staffordWith 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 otheraxisas in "over(var2,label(angle(45))). I don't understand why it won'tworkfor the ylabel.Does anyone see anything wrong with my code? If not, is this a glitchin the language? Can we trick it into working? I know I can manuallygoin and alter the angle of the labels once Stata has generated thegraph,but I will likely be making many ofthese graphs over different groups in the data and potentiallytweaking different aspects of them so it would be very timeconsuming tohave to continually manually alter them.I'm using Stata 10/MP, by the way.* * 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/

* * 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/

**Follow-Ups**:**RE: st: RE: graph hbox with ylabel(angle())***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: graph hbox with ylabel(angle())***From:*tess stafford <bunnyweeds@hotmail.com>

**st: RE: graph hbox with ylabel(angle())***From:*"Steichen, Thomas J." <SteichT@RJRT.com>

**RE: st: RE: graph hbox with ylabel(angle())***From:*tess stafford <bunnyweeds@hotmail.com>

**RE: st: RE: graph hbox with ylabel(angle())***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**Re: st: Update to -estout- available from SSC** - Next by Date:
**Re: st: AW: simple question on two-way table** - Previous by thread:
**RE: st: RE: graph hbox with ylabel(angle())** - Next by thread:
**RE: st: RE: graph hbox with ylabel(angle())** - Index(es):

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