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" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: RE: st: RE: Automatically changing -ylabel()- values using -graph-
Date   Thu, 9 Jun 2005 21:50:24 -0500

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Clive Nicholas
> Sent: Thursday, June 09, 2005 7:43 PM
> To: statalist@hsphsun2.harvard.edu
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index