[R] Second axis in a plot

Juan Cuervo juan_l_cuervo at yahoo.es
Mon Jun 17 15:16:18 CEST 2002

Hi to all,
First of all, I prefer to tell that I am a R-newbie,
so I apologize if this is a silly question (I have
tried looking in the manuals, but without luck).
I have two variables, y and z, that I want to plot
against x in the same plot. I have done this before,
using points() after plot(). But now the problem is
that y and z are in different units of measurement,
and their ranges are very different.
I have tried drawing a second axis with axis(), but I
found the same problem: the new axis is drawn in the
same range than the first variable plotted in the
I would greatly appreciate some suggestions.
Juan L. Cuervo

Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos. 
¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list