Search code examples
rgrapheps

Export a graph to .eps file with R


How do I export a graph to an .eps format file? I typically export my graphs to a .pdf file (using the 'pdf' function), and it works quite well. However, now I have to export to .eps files.


Solution

  • The easiest way I've found to create postscripts is the following, using the setEPS() command:

    setEPS()
    postscript("whatever.eps")
    plot(rnorm(100), main="Hey Some Data")
    dev.off()