[R] plotting multiple graphs in a single plot
kavaumail-r at yahoo.com
kavaumail-r at yahoo.com
Thu Apr 27 06:06:03 CEST 2006
Hi,
I would like to plot multiple graphs in a single plot
frame. Something like this:
plot(X, Y1, type='l', col='red')
lines(X, Y2, col='green')
lines(X, Y3, col='blue')
etc. The problem with this approach is, however, that
the range of the y-axis will be set according to the
minimum and maximum values of Y1 only. I would like to
generate a plot that shows all the values of Y1, Y2,
and Y3, no matter what their ranges are.
Is there an easy way to do this?
Thanks
Klaus
More information about the R-help
mailing list