Using the auto data set, the following will produce a different left and
right-Y axis with different label values:
twoway (scatter mpg price) (scatter weight price, yaxis(2)), ylabel(10(5)45)
ylabel(1500(500)5000, axis(2))
The pull down menus are really great for these multi-option graphing
problems.
I hope this helps,
Scott
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Sunday, February 23, 2003 4:32 AM
Subject: st: scatter graph
> Hi all,
>
> Hear I have a problem for scatter graph.
>
> There are three variables in my dataset, say, age, h1, and h2.
>
> I would like to draw scatter plot with age as X-axis, and h1 and h2 as the
variables on Y-axis.
> However, the scale for h1 and h2 are different. h1 range from 1 through 5,
h2 range from 0 through 100. How can I draw the scatter graph using left
Y-scale(1,2,,3,4,5) for h1, while using right Y-scale(0,20,40,60,80,100) for
h2?
>
> Thanks.
>
> Best,
> Jeffrey
> *
> * 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/