You can get all the plots into one file of any name using the pdf command pdf(filename,onefile=TRUE)
place this before your loop and say this after your loop dev.off() to stop writing pictures to that pdf file. In this way you can capture lots of images, but be careful. They will be really high quality, and therefore you might get a really large file size. for more say this in R ? pdf Adrienne Wootten NCSU On Thu, Oct 21, 2010 at 2:13 PM, briandavispdx <brida...@pdx.edu> wrote: > > > I'm a new-ish user using a for loop to create many hundreds of plots. I'm > using the "par" function to create them in a 2x2 graphics window. > > What I'd like to do is output this 4-up graphic to a file every four plots. > I really don't care what the filename is, but it would be useful to be able > to specify something like "plotnum_1." > > Any tips on how to go about this? > -- > View this message in context: > http://r.789695.n4.nabble.com/Help-saving-multiple-graphics-tp3006044p3006044.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. > [[alternative HTML version deleted]] ______________________________________________ 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.