[R] Multiple graph sheets

Paul, David A paulda at BATTELLE.ORG
Wed Jun 18 23:09:39 CEST 2003


In Splus the code

test.lm <- lm(y ~ x, data = test.data)
plot(test.lm)

generates a graphics window that contains
multiple graph sheets that one may choose
from via the "page" tabs at the bottom of
the window.

Is there a way to do this sort of thing in
R?  As another example, I have some repeated
measures data with continuous outcomes and 
have been working with the nlme library in Splus.
When I use the commands


library(nlme)
data.grouped <- groupedData(y ~ time | x, 
                            data = test.data)
plot(data.grouped, layout = c(5,3,11))


generates 11 separate graph sheets that can
be toggled between.  In R, the same commands
generate a sequence of graph sheets, but only
the last one is "saved" in the graphics 
window.  Is there a way around this?


Much thanks,

David Paul, Ph.D.
Battelle Memorial Institute
614.424.3176




More information about the R-help mailing list