[19193] in s-news-athena
[S] plot two 'y' variables vs. x, with different scales?
daemon@ATHENA.MIT.EDU (David Parkhurst)
Sun Sep 12 00:39:08 1999
Message-Id: <000b01befcd7$f317bd20$02c74b0c@1hk7i>
From: "David Parkhurst" <parkhurs@ophelia.ucs.indiana.edu>
To: "s-news" <s-news@wubios.wustl.edu>
Date: Sat, 11 Sep 1999 23:32:40 -0500
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Is there a way in s+ to do something like this:
x <- 1:10; y1 <- 1:10; y2 <- (10:1)*10
plot(x, y1, type="l")
lines(x, y2)
but to cause the plot made by the "lines" call to have an appropriately
different vertical scale, with its tics and labels on the right-hand side?
Would I have to use "subplot" somehow? I'd like the scaling to be automatic
for both plots, if possible.
Thanks for any help.
Dave Parkhurst
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news