Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: multiple y-axes
From
"Kieran McCaul" <[email protected]>
To
<[email protected]>
Subject
st: multiple y-axes
Date
Thu, 2 Sep 2010 10:53:18 +0800
...
I'm trying to overlay a line graph and a histogram, so I used this:
twoway (line hr TOC, yaxis(1)) ///
(histogram osteocalcin, width(5) yaxis(2))
This gives me the y-axis for hr on the left and the y-axis for the
histogram on the right which is what I want, but the histogram is over
the top of the line.
OK, so then I tried:
twoway (histogram osteocalcin, width(5) yaxis(2)) ///
(line hr TOC, yaxis(1))
Now the line is on top of the histogram (good), but the y-axes have
swapped. Now the hr axis is on the right and the histogram axis is on
the left.
So my question: how can if get my axes where I want them and have the
line over the top of the histogram?
Thanks.
______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul
http://www.researcherid.com/rid/B-8751-2008
"You don't win friends with salad" - Homer Simpson on vegetarianism
________________________________________________________________________
__
IMPORTANT: This email is intended for the use of the individual
addressee(s) named above and may
contain information that is confidential, privileged or unsuitable for
overly sensitive persons with low
self-esteem, no sense of humour or irrational religious beliefs. If you
are not the intended recipient,
any dissemination, distribution or copying of this email is not
authorised (either explicitly or implicitly)
and constitutes an irritating social faux pas.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/