【问题标题】:Unwanted residual borders in ggplot pdf onlyggplot pdf中不需要的剩余边界
【发布时间】:2013-11-06 10:54:12
【问题描述】:

下面的代码在窗口和 png 文件中生成正确的绘图。但是,在 Windows 7 下使用 Acrobat 9 Pro 查看的 pdf-output 中,有奇怪的残留边框;这些不会出现在 Sumatra 查看器中。

library(ggplot2)
pdf("hist.pdf")
qplot(carat,data=diamonds,geom="histogram",binwidth=0.2,fill=carat>=1)
dev.off()



R version 3.0.2 (2013-09-25)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] ggplot2_0.9.3.1

【问题讨论】:

    标签: r pdf ggplot2


    【解决方案1】:

    我会说这是 Adob​​e 制作的渲染神器。如果您可以发布该文件的链接,我可以为您提供有关该问题的更多详细信息。

    【讨论】:

      【解决方案2】:

      好像是Adobe Pro 9.0的渲染问题。我用 Adob​​e Reader 11 再试一次,没有问题。

      【讨论】:

        猜你喜欢
        • 2015-07-07
        • 2017-04-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-07-06
        • 2019-08-01
        • 1970-01-01
        相关资源
        最近更新 更多