[R] secondary axis in a plot

2008-05-22 Thread MarySR
Hello, I want to do a plot of two series, but adding a secondary axis in the rigth side to take into account the different scales of the two series. Anyone can tell me haw can I do that in R? Thank you very much Maria -- View this message in context:

Re: [R] secondary axis in a plot

2008-05-22 Thread Karl Ove Hufthammer
MarySR: I want to do a plot of two series, but adding a secondary axis in the rigth side to take into account the different scales of the two series. Anyone can tell me haw can I do that in R? I would *strongly* advice you to read this article on dual-scaled axes before proceeding:

Re: [R] secondary axis in a plot

2008-05-22 Thread Jim Lemon
MarySR wrote: Hello, I want to do a plot of two series, but adding a secondary axis in the rigth side to take into account the different scales of the two series. Anyone can tell me haw can I do that in R? Hi Maria, Have a look at twoord.plot in the plotrix package. Jim

Re: [R] secondary axis in a plot

2008-05-22 Thread jim holtman
If you need to do it: plot(PLOT1, bty='c') par(new=TRUE) plot(PLOT2, axes=FALSE, ylab='', xlab='', bty='c') axis(4) mtext(secondary y-axis label,4) On Thu, May 22, 2008 at 7:16 AM, MarySR [EMAIL PROTECTED] wrote: Hello, I want to do a plot of two series, but adding a secondary axis in the