Statalist


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

Re: st: graph hbox


From   "Elizabeth Allred" <[email protected]>
To   <[email protected]>
Subject   Re: st: graph hbox
Date   Thu, 11 Jun 2009 16:22:42 -0400

Thanks Scott. 

I see now that hbox and hbar share this odd characteristic--whether the numeric axis is vertical or horizontal it's the "y" axis. It is certainly NOT intuitive.

Liz


>>> On 6/11/2009 at  4:06 PM, in message
<[email protected]>, Scott Merryman
<[email protected]> wrote:
> 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
> <[email protected]> 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/
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index