I'm using R 2.0.1 in a class I teach, with most students working under windows XP. We have a data frame with the first column containing the factor "site," and five water-quality variables at each site. As one part of exploring these data, I'd like the students to run by(ourdata,site,pairs). When I try that, however, the pairs plots for the first 10 sites scroll past, and I'm left to look at the eleventh only. I think that if I did this same thing in s-plus with a graph sheet, each of the graphs would be saved to a separate page, and then they could be viewed one at a time. Is there any way to do the equivalent in R? (Using splom from lattice makes the graphs too small.) Thanks for any help. (I am not subscribed to the news mailing list, so I would appreciate direct replies.) David Parkhurst
Here are 3 solutions I'm aware of: 1. Export the graphs to PDF: pdf("file.pdf", height=9, width=12) [...your code...] dev.off() (If you export to PNG you end up with a bunch of files - which is OK if you have an image browser.) 2. par(ask=T) 3. Sys.sleep(), in case you produce plots in a loop. HTH, b. -----Original Message----- From: David Parkhurst Sent: Wednesday, January 26, 2005 2:08 PM To: r-help at stat.math.ethz.ch Subject: [R] graphsheet substitute in R? I'm using R 2.0.1 in a class I teach, with most students working under windows XP. We have a data frame with the first column containing the factor "site," and five water-quality variables at each site. As one part of exploring these data, I'd like the students to run by(ourdata,site,pairs). When I try that, however, the pairs plots for the first 10 sites scroll past, and I'm left to look at the eleventh only. I think that if I did this same thing in s-plus with a graph sheet, each of the graphs would be saved to a separate page, and then they could be viewed one at a time. Is there any way to do the equivalent in R? (Using splom from lattice makes the graphs too small.) Thanks for any help. (I am not subscribed to the news mailing list, so I would appreciate direct replies.) David Parkhurst ______________________________________________ R-help at 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
You can turn on plot history from the menu in the windows() device. Then whatever plots you make, you can page-up/page-down to navigate through them. (This is specific to Windows.) Andy> From: David Parkhurst > > I'm using R 2.0.1 in a class I teach, with most students > working under > windows XP. We have a data frame with the first column > containing the > factor "site," and five water-quality variables at each site. > As one part > of exploring these data, I'd like the students to run > by(ourdata,site,pairs). > When I try that, however, the pairs plots for the first 10 > sites scroll > past, and I'm left to look at the eleventh only. > > I think that if I did this same thing in s-plus with a graph > sheet, each of > the graphs would be saved to a separate page, and then they > could be viewed > one at a time. Is there any way to do the equivalent in R? > (Using splom > from lattice makes the graphs too small.) > > Thanks for any help. (I am not subscribed to the news > mailing list, so I > would appreciate direct replies.) > > David Parkhurst > > ______________________________________________ > R-help at 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 > >