[R] graphsheet substitute in R?

bogdan romocea br44114 at yahoo.com
Wed Jan 26 21:36:30 CET 2005


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




More information about the R-help mailing list