Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Can we change tick level for Y-axis?


From   "Lim, Nelson" <[email protected]>
To   <[email protected]>
Subject   RE: st: Can we change tick level for Y-axis?
Date   Sat, 2 Oct 2004 17:01:51 -0700

Thanks, Scott. Honest, I did spend a couple of hours finding a solution.
I didn't realize that I can do this something like this. I admit that I
am not the smartest person I know, but I must say that STATA
documentation on graphic is not the easiest piece to read and learn
from.

Regards,

NL

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Saturday, October 02, 2004 4:14 PM
To: [email protected]
Subject: Re: st: Can we change tick level for Y-axis?

graph hbar (mean) promoted, over(race) over(paygrade) /// 
ylabel(.10 "10%" .20 "20%" .30 "30%" .40 "40%" .50 "50%" .60 "60%" ///
.70 "70%" .80 "80%" .90 "90%" 1 "100%" )

Hope this helps,
Scott

----- Original Message -----
From: "Lim, Nelson" <[email protected]>
Date: Saturday, October 2, 2004 3:19 pm
Subject: st: Can we change tick level for Y-axis?

> For example, major ticks are labeled as 0, .1, .2, .3, etc. I 
> would like
> to change them to 0, 10%, 20%, 30%, etc. 
> 
> How can we do this in STATA? I look at several sources. I am ready to
> give up and use SigmaPlot, which is my default graphic program.  
> 
> Why? These represents mean of a dummy variable. But I want to present
> them as percentages. 
> 
> In case you want to know, I have three categorical variables: (1)
> promoted (1/0), (2) race (1,2,3), and (3) pay-grade (1 to 4). I 
> want to
> show how many percent of each group got promoted. I type:
> 
> graph hbar (mean) promoted, over(race) over(paygrade)
> 
> The graph I have is fine, except that the major ticks are labeled 
> as 0,
> .1, .2, etc. 
> 
> Thank you in advance for your help.
> 
> Regards,
> 
> NL
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


--------------------

This email message is for the sole use of the intended recipient(s) and
may contain privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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