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   Mon, 4 Oct 2004 07:25:09 -0700

Thanks, Nick. I must say Michael's Guide, Svend's Introduction, and your
columns help. 

But to say that "Stata's been consistent on that since the late 1980s,"
is like saying all you need to learn English is read the OED, since it
is quite consistent in describing English words since 1879. :-)

Regards,

NL

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: Sunday, October 03, 2004 3:35 AM
To: [email protected]
Subject: RE: st: Can we change tick level for Y-axis?

This is explained and documented under -axis label options-. 

In the manual, see the section [G] axis_label_options; on-line 
see

whelp axis_label_options 

or 

whelp axis label options 

in an -update-d Stata. 

One key is know where to look is to realise that tick options 
are options like -xtick()- and -ytick()- but labelled tick options 
are options like -xlabel()- and -ylabel()-. Stata's been consistent 
on that since the late 1980s. 

Nick 
[email protected] 

Lim, Nelson
> 
> 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.

Scott Merryman

> 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%" )

Lim, Nelson
 
> > 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. 
> > 

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