Re: [R] Plots Without Displaying

From: hadley wickham <>
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:


> 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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.