Clive,
1. This is a panel data set with 140 unique ids so -twoway line- will
produce 140 lines per variable which will be rather messy, maybe even
violent.
2. Why are you manually specifying the ylabel option when -mylabels-
will do it for you?
3. In your ylabel option, should it not be: ylabel(1 "100" .75 ....)
not ylabel(.1 "100" .75 ....).
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)
Hope this helps,
Scott
----- Original Message -----
From: Clive Nicholas <[email protected]>
Date: Thursday, June 9, 2005 1:55 am
Subject: RE: st: RE: Automatically changing -ylabel()- values using -
graph-
> . use http://www.stata-press.com/data/r8/abdata.dta
>
> . replace emp= emp/100
> (1031 real changes made)
>
> . replace wage= wage/100
> (1031 real changes made)
>
> . mylabels 0(25)100, myscale(@/100) local(label100)
> 0 "0" .25 "25" .5 "50" .75 "75" 1 "100"
>
> . myticks 0(25)100, myscale(@/100) local(tick100)
> 0 .25 .5 .75 1
>
> . twoway line emp wage year, xtitle("") ///
> ylabel(.1 "100" .75 "75" .5 "50" .25 "25" 0 "0", angle(0)) ///
> clpattern(dash) scheme(s1mono)
>
> It produces a rather violent-looking graphic, as well as getting the
> y-scale all mixed up (I'm not aware that anything needs to be -
> sort-ed).
> Have fun.
>
> CLIVE NICHOLAS |t: 0(044)7903 397793
> Politics |e: [email protected]
> Newcastle University |http://www.ncl.ac.uk/geps
>
> Whereever you go and whatever you do, just remember this. No
> matter how
> many like you, admire you, love you or adore you, the number of
people
> turning up to your funeral will be largely determined by local
weather
> conditions.
>
> *
> * 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/
>
*
* 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/