用R将图形导出到.eps文件 [英] Export a graph to .eps file with R

查看:3783
本文介绍了用R将图形导出到.eps文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将图表导出为.eps格式的文件?我通常将我的图表导出为.pdf文件(使用'pdf'函数),并且工作得很好。但是,现在我必须导出为.eps文件。

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.

推荐答案

创建postscripts的最简单方法如下,使用 setEPS()命令:

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()

这篇关于用R将图形导出到.eps文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆