- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在从 R 导出 eps 文件并导入 Word 2010 时遇到问题。
我正在使用 ggplot2
情节,例如
library(ggplot2)
p <- qplot(disp,hp,data=mtcars) + stat_smooth()
p
setEPS()
之后以下都不是可以成功导入的生成文件。
ggsave("plot.eps")
postscript("plot.eps")
print(p)
dev.off()
File
制作情节->
Save As
->
Postscript
从 GUI 的菜单中,可以正确导入。但是,当 Word 文档随后导出为 pdf 时,图形中的字体有点锯齿状。
ggsave
/postscript
) 设置的哪些组合允许我生成可以导入 Word 2010 的 eps 文件? cairo_ps
有了更多的运气。生产地 block 。但是,导入 Word 时不会显示任何文本。
cairo_ps
,从 GUI 保存,
ggsave
)后,Word 中的 eps 导入过滤器似乎很差,因为打印/pdf 输出与质量不匹配的 latex 文件。
ggsave
版本(使用
postscript
)确实存在其他两种方法所没有的颜色问题。
fortune(109)
。不适用。我很高兴被证明不是这样,但我会将答案和赏金奖励给任何能够提供可以以命令形式复制 GUI 输出的命令的人。
最佳答案
这对我有用...遵循 postscript
中的建议帮助页面:
postscript("RPlot.eps", height = 4, width = 4, horizontal = FALSE, onefile = FALSE,
paper = "special")
library(ggplot2)
p <- qplot(disp,hp,data=mtcars) + stat_smooth()
p
#geom_smooth: method="auto" and size of largest group is <1000, so using loess. Use 'method = x' to #change the smoothing method.
#Warning message:
#In grid.Call.graphics(L_polygon, x$x, x$y, index) :
# semi-transparency is not supported on this device: reported only once per page
dev.off()
#quartz
# 2
"eps"
的 savePlot 方法模式在 Windows 中可用(但在 Mac 中不可用)。我同意这些字体不像在 Mac 上显示的那样流畅,但我可以看出使用 savePlot 保存和从交互式窗口使用 save as 在质量上没有区别。
savePlot(filename = "Rplot2", type = "eps", device = dev.cur(), restoreConsole = TRUE)
savePlot
来电
(.External(CsavePlot, device, filename, type, restoreConsole))
关于R eps 导出和导入 Word 2010,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12747916/
我正在寻找有助于以编程方式操作 EPS(封装 PostScript)文件的库。基本上,我想做的是: 显示/隐藏 EPS 文件中预先存在的图层(打开和关闭它们) 在 EPS 文件中填充(颜色)命名形状
我试图将 IPython 中的绘图保存为 eps,一开始它似乎可以工作,但是一旦我尝试通过 latex 或 word 访问该绘图,它就不会显示任何内容。如果我将绘图保存为 png 或 jpg,它可以正
我是 Python 的新手,一直在使用 turtle 模块作为学习这门语言的一种方式。 感谢 stackoverflow,我研究并学习了如何将图像复制到封装的 postscript 文件中,并且效果很
我有一个包含数百个项目的直方图,我为其绘制了 Q-Q 图。这导致 EPS 大小为 2.5 兆字节。对于仅包含在出版物中并且不会以 100 倍放大倍率查看的图形来说,这太大了。 R 中是否有任何选项可以
我在二进制搜索中有 2 个比较,但我无法在两个底层之间做出确切的偏好。我在下面的两个示例中摇摆不定: for (int step = 0; step 0) right = middle; else
在 Mathematica 中保存图形时,是否可以以 EPS 格式保存不透明的图形?例如, Plot[Evaluate[Table[BesselJ[n, x], {n, 4}]], {x, 0, 10
一个期刊要我把这些数字作为 EPS 文件提交。使用 ggplot2 从 R 将它们导出为 EPS 文件,然后在 Adobe Illustrator 中打开 EPS 文件告诉我“系统上找不到字体”。
我有一个 encapsulated PostScript似乎只包装图像文件的文件。 有没有工具可以从中提取图像数据? 最佳答案 “convert”将使用ghostscript渲染eps,然后继续渲染位
我目前正在使用 scrapy 从 barcharts.org 中提取 52 周高点列表。然后我获取该数据,删除所有多余的内容,然后将其保存到一个 txt 文件中。然后我获取 txt 文件并使用它从 i
我正在 Linux 中使用 Apache FOP 创建一个 pdf然后我需要将 pdf 转换成 eps。 我尝试了很多方法,唯一似乎有效的方法是 pdftops。但,当我在命令行中将它转换成 Linu
我正在尝试制作 Matlab,7.10.0.499 (R2010a),使用 print 将图形写入 eps,但无论我将图形设置为何种纸张尺寸,它都会不断裁剪轴标签, 除非我把它变成 A3。 这是一个
我正在绘制大型数据集并将其打印为 eps: plot(Voltage,Torque,'b.') print -depsc figure.eps 通过这百万个数据点,我将拟合一个图表。然而,由于电压和扭
我希望将我的 MATLAB 图导出为高质量图形。具体来说,我想将其保存为基于矢量的文件格式,例如 EPS 或 SVG。 I have tried print and saveas commands:
我正在使用 eps 格式在 Matlab 中导出图像,但它使图像变得平滑。 Matlab 不会使用其他格式(例如 png)对图像进行模糊处理。我想知道如何导出 eps 格式的非模糊图像。这是使用 pn
我正在做一个 C# 项目,我需要指导 如何使用 ghostscript、ImageMagik 将 .eps 文件格式转换为 .bmp, 如果不使用 ghostscript,ImageMagik 如何检
我想提取 postscript 图像文件中包含的文本信息(我的轴标签的标题)。这些图像是用 pgplot 生成的。我在 Ubuntu 上尝试过 ps2ascii 和 ps2txt,但它们没有产生任何有
我正在使用 EP plus 和 c# 应用程序构建导出到 excel 的功能。我目前收到错误。 'Table range collides with table tblAllocations29' 在
我有 我从 http://www.shutterstock.com/ 下载的文件file.eps ,它看起来像这样: 我要 将所有这些图标导出到自己的部分,以便我可以在我的网站上使用它们。 我试过了
我想知道是否有人知道我可以在其中创建 QR 码并将自己的图像或 Logo 嵌入其中的库。 导出应该是带有 YCMK 的 EPS。 我在这里找到了这个 http://code.google.com/p/
我读过 this和 this但无法使其发挥作用。 vDF <- data.frame(v = rnorm(50,1,40)) g <- ggplot(vDF, aes(x = vDF)) + geom
我是一名优秀的程序员,十分优秀!