Export a graph to .eps file with R

前端 未结 5 1305
刺人心
刺人心 2020-11-28 02:00

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 exp

5条回答
  •  情歌与酒
    2020-11-28 02:53

    The postscript() device allows creation of EPS, but only if you change some of the default values. Read ?postscript for the details.

    Here is an example:

    postscript("foo.eps", horizontal = FALSE, onefile = FALSE, paper = "special")
    plot(1:10)
    dev.off()
    

提交回复
热议问题