Re: [R] how to use axes=FALSE to get multple plots?

2009-02-10 Thread Dan Kelley
Duncan Murdoch-2 wrote: > > ...Are you really sure you want a graph with two different scales on it? > Thanks, Duncan. I'll use mtext. It is common for people in my research area to put several axes on plots. The top two panels from library(oce) data(ctd) plot(ctd) shows this. Actually,

Re: [R] how to use axes=FALSE to get multple plots?

2009-02-10 Thread Duncan Murdoch
Dan Kelley wrote: I am trying to plot two things on one graph, with a y-axis at the left for one variable, and a y-axis at the right, for the other variable. I thought I could do as follows par(mar=rep(4.5, 4)) plot(0:10, 10:20) par(new=TRUE) plot(0:10, 100:110, axes=FALSE) axis(4) but this

[R] how to use axes=FALSE to get multple plots?

2009-02-10 Thread Dan Kelley
I am trying to plot two things on one graph, with a y-axis at the left for one variable, and a y-axis at the right, for the other variable. I thought I could do as follows par(mar=rep(4.5, 4)) plot(0:10, 10:20) par(new=TRUE) plot(0:10, 100:110, axes=FALSE) axis(4) but this writes both y-axis