【发布时间】:2018-07-04 10:15:20
【问题描述】:
我正在尝试使用dev.copy2eps() 函数来保存我输出的图表。但是,当我在函数中更改绘图宽度和高度时,所有字符串(包括标签和图例)都不会出现。
代码:
boxplot(volunteers$number_of_commits, employees$number_of_commits, las = 1, outline = FALSE, cex.lab=1.2, horizontal = TRUE, margin = list(l = 10, r = 10, b = 0, t = 0), col=(c("#b8d1ed", "#aae0c0")), main = "Number of Commits")
legend("bottomright", legend=c("Employees", "Volunteers"), fill=c("#aae0c0", "#b8d1ed"), inset= .02, cex=1.1)
dev.copy2eps(file="Images/atom/atom_num_commits.eps", width = 650, height = 360)
问题是:如何使用 postscript 功能保存不同大小的图表,同时保持相同的质量和信息?
【问题讨论】:
-
为我工作。我用 Inkscape 打开它。你用什么打开它?
标签: r