[R] Lattice: Saving multiple plots
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Mon Mar 31 07:46:45 CEST 2003
You can generate plots on multiple jpeg files. See ?jpeg for the format of
the `file' argument; this happens by default.
However, this is not `saving multiple plots' and that is more difficult.
Remember a lattice plot object is plotted by printing, so you can save the
object and then open a new device and print it again.
On Sun, 30 Mar 2003, Peter Ho wrote:
> Is there a way to automatically save trellis plots , when "layout" is
> used to produce graphs on more than one page (graph window). In the
> example below, I have 4 graphs on each of 4 pages. I want to save each
> page separately.
>
> ######
> splom(~final.princomp.pc.scores.five[1:3]|Syrup.time*Massequite.temp,
> groups=Batch.number,data= final.princomp.pc.scores.five,
> panel = panel.superpose,
> key = list(title = "Batches",
> points = list(pch = super.sym$pch[1:14],
> col = super.sym$col[1:14]),
> text =
> list(c("1","2","3","4","5","6","7","8","9","10","11","12","13","14")),
> columns=7),aspect=1,layout = c(2,2,4))
> #####
>
> With only one page of graphs I would normally use the following script
> in the beginning.For example:
>
> #####
> jpeg(file="graph1.jpeg", width=960, height=960, quality=100)
> #####
>
> Is there a similar way to save these graphs?
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list