Re: Saving plots in 'R'



Kevin E. Thorpe wrote:
PatB wrote:
I wonder could anybody help me out? I am writing an R script which will
produce multiple plots from a set of data files. The problem is that
the
only way I have found to save the plots is by manually clicking on each
one
and saving to a, say, '.ps' file. The script will potentially produce
hundreds of them, so it will be a lifes work to save them manually. Is
there
any command/function in R that I can embed in the script which will do
this
for me?
TIA, Pat.
If you have the postscript or pdf device available, you can
save multiple plots to a file created by each of these devices.

The png() and jpeg() devices produce things that are a little easier to import into PowerPoint presentations. The compression in JPEG can blur sharp boundaries (e.g. of straight lines), so I usually go with PNG.
.



Relevant Pages

  • Re: Saving plots in R
    ... Anon. ... produce multiple plots from a set of data files. ... The script will potentially ...
    (sci.stat.consult)
  • Re: Saving plots in R
    ... PatB wrote: ... produce multiple plots from a set of data files. ... The script will potentially produce ...
    (sci.stat.consult)
  • Re: Saving plots in R
    ... Anon. ... produce multiple plots from a set of data files. ... The script will potentially produce ... save multiple plots to a file created by each of these devices. ...
    (sci.stat.consult)
  • Saving plots in R
    ... I am writing an R script which will ... produce multiple plots from a set of data files. ...
    (sci.stat.consult)
  • Re: Presenting digits on a graph
    ... Is there any tcl module script that might ... You should only expect browsers to handle GIF, JPEG, or PNG. ... convert Postscript to GIF, JPEG, or PNG with Ghostscript. ...
    (comp.lang.tcl)