Hello, Maybe instead of a loop, you could try
lapply(frames, function(y) plot(y$hour1)) Hope this helps, Rui Barradas Em 18-01-2013 09:16, condor escreveu:
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.