Re: [R] saving intermediate graphics

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 13 Jul 2006 - 05:01:24 EST

On Wed, 12 Jul 2006, Charles Annis, P.E. wrote:

> Greetings, R-friends:
>
> I'm using R 2.3.1 on a DELL box with 2 gig, running WindowsXP Pro.
>
> I am making what is admittedly a very busy plot composed of qq plots with
> superimposed density() plots. I need to show everything and the result is
> messy, but informative.
>
> If I produce the basic qq plot, and then add incrementally to it, saving the
> graphic at each step, the sequence does make the entire exercise
> understandable. (Honest!)
>
> I can do this easily by clicking on the plot and saving it to PowerPoint as
> a metafile.
>
> I would like to automate the process. I know how to produce win.metafiles,
> but closing the file with dev.off() to produce the first graphic means that
> I can't add to that and produce the subsequent graphic and file.
>
> Is there a way to do this without generating the entire plot from the
> beginning for each graphic?

Have you tried savePlot()? It should work incrementally.

-- 
Brian D. Ripley,                  ripley@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

______________________________________________
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
Received on Thu Jul 13 05:05:52 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 Thu 13 Jul 2006 - 08:18:17 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.