Re: [R] Plots Without Displaying

From: hadley wickham <h.wickham_at_gmail.com>
Date: Fri 18 Aug 2006 - 01:58:48 EST

> 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. Received on Fri Aug 18 02:07:11 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 18 Aug 2006 - 04:25:21 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.