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,
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
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
3 matches
Mail list logo