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

RE: RE: st: RE: Automatically changing -ylabel()- values using -graph-


From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   RE: RE: st: RE: Automatically changing -ylabel()- values using -graph-
Date   Thu, 9 Jun 2005 21:50:24 -0500

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Clive Nicholas
> Sent: Thursday, June 09, 2005 7:43 PM
> To: [email protected]
> Subject: Re: RE: st: RE: Automatically changing -ylabel()- values using -
> graph-
> 
> > 4. Does this produce the graph you want:
> >
> > use http://www.stata-press.com/data/r8/abdata.dta,clear
> > collapse (mean) emp wage, by(year)
> > replace emp= emp/100
> > replace wage= wage/100
> > mylabels 0(25)100, myscale(@/100) local(label100)
> >
> > twoway line emp wage year , xtitle("") ///
> >   ylabel(`label100', angle(0)) ///
> >   clpattern(dash) scheme(s1mono)
> 
> It certainly produces the correct _graph_ (i.e., only two lines, and
> scaled in the right proportions). But notice that the y-axis labels are
> _still_ normalized to the 0-1 scale (do you get the same?), when they
> should be labelled from 0-100.
> 

No.  For me the y-axis is labeled: 0, 25, 50, 75, 100.  I am at a loss.

Good luck,
Scott



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