[R] Plots Without Displaying
hadley wickham
h.wickham at gmail.com
Thu Aug 17 17:58:48 CEST 2006
> 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
More information about the R-help
mailing list