Re: [R] Overlay of two graphs of different axes

2010-09-13 Thread Greg Snow
n...@r- > project.org] On Behalf Of Uwe Dippel > Sent: Sunday, September 12, 2010 11:54 PM > To: r-help@r-project.org > Subject: [R] Overlay of two graphs of different axes > > Though I have read quite a bit, and tried quite a bit, I have yet to > find a nice way to overlay 2 or m

Re: [R] Overlay of two graphs of different axes

2010-09-13 Thread David Winsemius
On Sep 13, 2010, at 1:54 AM, Uwe Dippel wrote: Though I have read quite a bit, and tried quite a bit, I have yet to find a nice way to overlay 2 or more curves in the same plot, with different ranges. The different axes could be a problem but if you construct both with predefined coordin

[R] Overlay of two graphs of different axes

2010-09-12 Thread Uwe Dippel
Though I have read quite a bit, and tried quite a bit, I have yet to find a nice way to overlay 2 or more curves in the same plot, with different ranges. Here is simplified sample code to demonstrate the question: > plot(2*(seq(1,5)), type="l", axes=FALSE) > curve(2*(seq(1,5)), type="b", add=TR