[R] saving intermediate graphics

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jul 12 21:01:24 CEST 2006


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 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