[R] exporting plots

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Jan 23 08:28:37 CET 2002


Jay Pfaffman <pfaffman at relaxpc.com> writes:

> > I'm running R (latest) on linux, using gnome.  I was wondering how 
> > export the plots to an image file of sort sort.  I can't find anything 
> > obvious in the documentation.
> 
> Finally one I can answer!  (Thanks to those pointing out to me the
> various docs in the "user contributed" section.  I'm on my way to
> knowing how to use R & maybe even learning the statistics that didn't
> quite soak in during my two stats classes).
> 
> Anyway, the short answer: "?Devices"
> 
> Choose a device, turn it on with a call like "png()", issue your
> graphics commands & be sure to issue the dev.off() command when you're
> done.  If you don't, your graphics file won't be complete (or might be
> empty). 
> 
> I hope this helps.

Also notice dev.copy() and dev.copy2eps() (These work best if you make
the screen dimensions match those of the final image.)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list