Skip to content

How to save R-grafics in eps format

3 messages · paladini@rz.uni-potsdam.de, Peter Dalgaard, Martin Lam

#
paladini at rz.uni-potsdam.de writes:
from ?postscript: 

     The postscript produced by R is EPS (_Encapsulated PostScript_)
     compatible, and can be included into other documents, e.g., into
     LaTeX, using '\includegraphics{<filename>}'.  For use in this way
     you will probably want to set 'horizontal = FALSE, onefile =
     FALSE, paper = "special"'.

Also, there is dev.copy2eps for copying from screen to EPS. Watch out
for pointsize and geometry differences though.

  
    
#
Dear Claudia,

This is how I save the plots as *.eps.

postscript(file="testplot.eps",
            paper="special",
            width=10,
            height=10,
            horizontal=FALSE)

yvalues = runif(100)
plot(yvalues)

dev.off()

HTH,

Martin Lam
--- paladini at rz.uni-potsdam.de wrote: