[R] plotting multiple figures on one page

From: scarlet <yapingzhou_at_hotmail.com>
Date: Wed, 16 Mar 2011 13:46:52 -0700 (PDT)

I am new to the R language. I am trying to plot multiple figures on one page through a loop, but the code just produce one graph on one page. Can someone show some light on what's wrong?

Here is my code:

tcdata<-read.table("mydata.txt",header=TRUE) postscript("myfigure.ps")
basins<- paste(c("b1","b2","b3","b4","b5","b6"),sep="") par(mfrow = c(2,3),mar=c(0,4,0,2),oma=c(5,0,3,0))

for (k in 1:6) {


model=rq(rain~year,tau=seq(0.1,0.9,0.1)) plot(summary(model,alpha=0.05,se="iid"),parm=2,pch=19,cex=1.2,mar=c(5,5,5,5), ylab=" ",xlab=" ")


View this message in context: http://r.789695.n4.nabble.com/plotting-multiple-figures-on-one-page-tp3382981p3382981.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 Mar 2011 - 21:38:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Mar 2011 - 07:50:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive