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   [email protected]
To   [email protected]
Subject   Re: st: Can we change tick level for Y-axis?
Date   Sat, 02 Oct 2004 18:14:13 -0500

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/



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