Re: [R] How to plot multiple graphs each with multiple y variables

2009-02-09 Thread Peter Alspach
Kia ora Gina If I understand you correctly, you need to specify mfrow argument as c(1,2) and then make your two calls to plot(). HTH ... Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of gina patel > Sent: Tues

Re: [R] How to plot multiple graphs each with multiple y variables

2009-02-09 Thread Gabor Grothendieck
Try something like this where we use the built in data frame anscombe: opar <- par(mfrow = c(1, 2), no.readonly = TRUE) matplot(1:11, anscombe[1:4], pch = 1:4, col = 1:4, log = "x", ylab = "Y") matplot(1:11, anscombe[5:8], pch = 1:4, col = 1:4, log = "x", ylab = "Y") par(opar) On Mon, Feb 9, 200