开发者

from ggplot2 to OOo workflow?

开发者 https://www.devze.com 2022-12-29 11:40 出处:网络
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. Openoffic

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 fo开发者_Python百科r 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.


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


try http://cran.r-project.org/web/packages/odfWeave/index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消