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

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

From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Automatically changing -ylabel()- values using -graph-
Date   Tue, 7 Jun 2005 07:15:35 +0100 (BST)


Nick Winter will forgive me if I don't report back on his solution just
yet, for I'm having problems implementing Nick Cox's -mylabels- solution.

. mylabels 0(.25)1, myscale(100 * @) local(label100)
0 "0" 25 ".25" 50 ".5" 75 ".75" 100 "1"

. myticks 0(.25)1, myscale(100 * @) local(ticks100)
0 25 50 75 100

. twoway line beconch belabch beldmch quarter, xtitle("") ylabel
  (`label100', angle(0)) xlabel(1 "Q1" 2 "Q2" 3 "Q3" 4 "Q4") scheme(s1mono)

The -be*- variables are normalized (0-1) continuous variables; -quarter-
does what it says on the tin. I'm not allowed to show you the resulting
graph, but I can tell you that:

(1) I get a single flatline along the bottom of the graph when I should be
    seeing large zig-zag patterns; and

(2) the labels don't display in any case: I still get (0 .25 .5 .75 1)
    instead of (0 25 50 75 100).

I look forward to being told where I've gone wrong here, as no doubt I
have. Thanks.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |

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

*   For searches and help try:

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