> Yes, you can do that for lattice-based plots.  The functions in the lattice
> package produce objects of class "trellis" which can be stored in a list and
> processed or updated at a later time:

Or for ggplot based plots:

install.packages("ggplot")
library(ggplot)

> plotList <- list(length=3)
> plotList[[1]] <- qplot(yield, site, data=barley)
> plotList[[2]] <- qplot(yield, variety, data=barley)
> plotList[[3]] <- qplot(yield, year, data=barley)

Which actually stores plot objects which are independent of their
representation as graphics.

Hadley

______________________________________________
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.

Reply via email to