AIP(PRB)日志的GNU R输出文件格式

AIP(PRB)日志的GNU R输出文件格式,r,templates,ggplot2,journal,R,Templates,Ggplot2,Journal,如果GNU R(ggplot2)图的最小模板应该在AIP PR期刊系列中发布,那么它们应该是什么样的 A列在AIP网站和中。 我更喜欢TIFF或PNG文件,因为PDF和PS文件现在不支持所有图形对象。 这是我迄今为止的最小示例: library(ggplot2) theme_prb <- theme_bw() ## have to find out how to create own theme with ## fontsize=12 and so on. theme_set(them

如果GNU R(ggplot2)图的最小模板应该在AIP PR期刊系列中发布,那么它们应该是什么样的

A列在AIP网站和中。 我更喜欢TIFF或PNG文件,因为PDF和PS文件现在不支持所有图形对象。 这是我迄今为止的最小示例:

library(ggplot2)

theme_prb <- theme_bw()
## have to find out how to create own theme with
## fontsize=12 and so on.

theme_set(theme_prb)

ggplot(mtcars, aes(x=hp, y=qsec)) +
  geom_point()+
  geom_hline(yintercept=mean(mtcars$qsec)) 

ggsave(filename="00001prb.png", dpi=600, scale=1, units="mm", width=86, height=60)
库(ggplot2)

你应该有一些想法。即使它不能让你的整个过程,告诉我们你得到了什么;今天不支持哪些“图形对象”@baptiste ggplot PDF和PS输出文件与屏幕输出文件看起来不同。嵌入字体、数学公式和alpha通道是非常有问题的,甚至还有更多的问题。(至少在2012年底我试过的时候)我没有遇到任何问题,尽管我承认我经常在Illustrator中修改最终版本。你能发布一个包含pdf/eps输出中缺少的所有功能的最小模型示例吗?@baptiste是的,我可以创建这样一个示例。但它将不得不等待一段时间。我将为它创建一个单独的线程,并在这里提供一个链接。