Hi, May be this helps: frames<-list(data.frame(c1=1:3,day1=17,hour1=c(10,11,6)),data.frame(c1=6:7,day1=19,hour1=8),data.frame(c1=8:10,day1=21,hour1=c(11,15,18)),data.frame(c1=12:13,day1=23,hour1=7)) par(mfrow=c(2,2)) lapply(seq_along(frames),function(i) plot(frames[[i]][,3])) A.K.
----- Original Message ----- From: condor <radonniko...@hotmail.nl> To: r-help@r-project.org Cc: Sent: Friday, January 18, 2013 4:16 AM Subject: Re: [R] plotting from dataframes So by hand the command would be par(mfrow=c(1,2)) plot(frames$'1'hour1) plot(frames$'2'hour1) But in my case there are far more than 2 days, so I want to use a loop. Suppose I have 10 plots par(mfrow=c(2,5)) for(i in 1:10){ plot( /what should be put here??/) } -- View this message in context: http://r.789695.n4.nabble.com/plotting-from-dataframes-tp4655851p4655931.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.