postscript 设备的默认字体大小
Default font size with postscript device
我正在使用 postscript 设备在 R 中生成 eps 图形,像这样(简化):
require(extrafont)
#font_import() # I did it only once when installing new fonts
# see http://www.fromthebottomoftheheap.net/2013/09/09/preparing-figures-for-plos-one-with-r/
loadfonts(device = "postscript")
postscript("elev.eps", width = 70/25.4, height = 75/25.4,
family = "Myriad Web Pro", paper = "special", onefile = FALSE,
horizontal = FALSE)
barplot(krk$counts, space=0, horiz=T, cex.axis = 0.7)
dev.off()
现在我的问题是关于我尝试使用 cex.axis
以一种笨拙的方式 fiddle 的字体大小。我应该有字体大小为 8 的轴标签。我能以某种方式告诉 postscript 设备我想要基本字体大小 = 8 吗? IE。对于 cex = 1 我想要字体大小 = 8。我发现可用的是 cex
参数,它与 something 相关,我什至不知道如何获得,更不用说设置...
PS:我尝试了?postscript
但没有找到答案
这在我的设备上产生了预期的字体大小。
postscript("elev.eps", width = 70/25.4, height = 75/25.4,
paper = "special", onefile = FALSE,
horizontal = FALSE, pointsize=8)
barplot(1,1, space=0, horiz=T, cex.axis = 0.7)
dev.off()
(该图像在我的 pdf 查看器中的显示方式旋转了 90 度,但我认为您的问题与水平参数无关。)
我正在使用 postscript 设备在 R 中生成 eps 图形,像这样(简化):
require(extrafont)
#font_import() # I did it only once when installing new fonts
# see http://www.fromthebottomoftheheap.net/2013/09/09/preparing-figures-for-plos-one-with-r/
loadfonts(device = "postscript")
postscript("elev.eps", width = 70/25.4, height = 75/25.4,
family = "Myriad Web Pro", paper = "special", onefile = FALSE,
horizontal = FALSE)
barplot(krk$counts, space=0, horiz=T, cex.axis = 0.7)
dev.off()
现在我的问题是关于我尝试使用 cex.axis
以一种笨拙的方式 fiddle 的字体大小。我应该有字体大小为 8 的轴标签。我能以某种方式告诉 postscript 设备我想要基本字体大小 = 8 吗? IE。对于 cex = 1 我想要字体大小 = 8。我发现可用的是 cex
参数,它与 something 相关,我什至不知道如何获得,更不用说设置...
PS:我尝试了?postscript
但没有找到答案
这在我的设备上产生了预期的字体大小。
postscript("elev.eps", width = 70/25.4, height = 75/25.4,
paper = "special", onefile = FALSE,
horizontal = FALSE, pointsize=8)
barplot(1,1, space=0, horiz=T, cex.axis = 0.7)
dev.off()
(该图像在我的 pdf 查看器中的显示方式旋转了 90 度,但我认为您的问题与水平参数无关。)