Statalist


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

Re: st: graph hbox


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph hbox
Date   Thu, 11 Jun 2009 15:06:46 -0500

With -graph hbox- the numerical is still the y-axis.  Try

-graph hbox px, over(nxs) yline(70) ylab(50(20)160)-

Scott


On Thu, Jun 11, 2009 at 2:58 PM, Elizabeth Allred
<lizard@hsph.harvard.edu> wrote:
>
> I always seem to have difficulty with Stata graphics.
>
> I'm drawing several box and whiskers plots. I want to mark a critical value on each plot and I want the axes and tick marks to be the same on all of them. Given that my grouping variable has 6 categories and the labels are rather long, hbox(horizontal boxes) rather than box (vertical boxes) gives I nicer picture. However, I find I am unable to mark a critical value with a vertical line nor am I able to specify tick marks when I use hbox.
>
> This works fine:
> graph box px, over(nxs) yline(70) ylab(50(20)160)
>
> This does not:
> graph hbox px, over(nxs) xline(70) xlab(50(20)160)
>
> I see absolutely no reason why there shouldn't be "symmetry" in these commands.
>
> Would somebody suggest a workaround?
>
> Liz
>
> *
> *   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/



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