从 ggplot2 到 OOo 工作流程?

发布于 2024-08-31 01:33:30 字数 353 浏览 2 评论 0原文

这实际上不是一个编程问题,但我仍然在这里尝试。

我曾经在报告中使用乳胶。但是与我一起工作的人需要进行小的编辑并且没有乳胶技能。 Openoffice 就是您的最佳选择。但是用 dpi > 100 保存 ggplot 图像会导致图表非常丑陋。 dpi = 600 是不行的(例如巨大的图例)。那么该怎么办呢?

我目前保存(仍然通过 ggsave)到 eps - openoffice 可以导入。但性能一点也不好。

谷歌搜索我发现了 OOo 中 eps 性能不佳的错误,并且还讨论了未实现的 svg 功能。但现在没有人能帮助我。

如果你使用 ggplot2 和 OOo - 你会做什么?由于某种原因,我的 pdf 转换不成功。

This is not really a programming question, but I try here none the less.

I once used latex for my reports. But the people I work with needs to make small edits and do not have latex skillz. Openoffice is then the way to go. But saving ggplot images with dpi >100 makes for really ugly graphs. dpi = 600 is a no go (e.g. huge legend). So what to do?

I currently save (still via ggsave) to eps - which openoffice can import. But performance is not good at all.

Googling I found a bug for the poor eps performance in OOo, and also talk about a non-implemented svg feature. But none helps me right now.

If you work with ggplot2 and OOo - What do you do? I have been unsuccesfull with pdf conversion for some reason.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

他是夢罘是命 2024-09-07 01:33:30

如果 eps 不适合您,请尝试其他设备。例如

qplot(mpg, wt, data=mtcars)
ggsave(filename = "test.png")            % png device guessed from filename
ggsave(filename = "test.png", dpi = 600) % higher res if quality is an issue

If eps doesn't work for you, try a different device. For example

qplot(mpg, wt, data=mtcars)
ggsave(filename = "test.png")            % png device guessed from filename
ggsave(filename = "test.png", dpi = 600) % higher res if quality is an issue
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文