On Mon, 11 Sep 2006, James W. MacDonald wrote: > Jeff Bricker wrote: > > There's probably a better way, but what I do in this situation is to > > capture output to a .pdf that I can page through. > > There are two ways that might be considered better, if better implies > doing things from within R. > > 1.) At an R plot, type x11() to start a window, then under the History > menu item, click 'Recording'. Now do your plots, and you can go back and > forth through them using 'Page up' and 'Page down'.
Better, windows(record=TRUE) to open a graphics device with recording turned on. [x11() is only there for Unix users of R who have trouble adjusting to other windowing systems.] This is the approach the Windows porters of R thought most convenient (even more convenient that tabbed windows). > 2.) Set par(ask = TRUE), then submit your code. You will then have to > hit return to create each sucessive plot. > > HTH, > > Jim > > > > > > pdf("c:/temp/myPlots.pdf",h=8.5,w=11) #this is "landscape" orientation > > plot(<your arguments here>) > > dev.off() > > > > You could also run a loop to open a new windows() device for each > > plot, but that gets messy if you have lots of plots. > > > > On 9/11/06, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > >>Hello! I have written an R script on a Windows platform where I > >>calculate eight result matrices I plot using matplot. I would like to > >>display the resulting plots successively, rather than simultaneously, > >>and I was wondering if anyone could point me in the right direction as > >>to how to do this. The graphs pop up in this manner by default when I > >>run my script in S-PLUS, with tabs separating them so I can view each > >>graph at my leisure. However when I run my script in R, each graph pops > >>up only for a moment before it is replaced by the next until I am left > >>with only the plot of the eighth matrix at the end of the script. Thanks > >>in advance for your help! > >> > >>Amy Paternostro > >>National Center for Environmental Economiccs > >>United States Environmental Protection Agency > >>1200 Pennsylvania Avenue, NW > >>Washington, DC 20460 > >>[EMAIL PROTECTED] > >> > >>______________________________________________ > >>R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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. > > > -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ R-help@stat.math.ethz.ch 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.