r - Default font size with postscript device -
i generating eps figures in r using postscript device, (simplified):
require(extrafont) #font_import() # did 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()
now question font size trying fiddle using cex.axis
, in clumsy way. supposed have axis labels in font size 8. can somehow tell postscript device want base font size = 8? i.e. cex = 1 want font size = 8. found available cex
parameter, relative something don't know how get, let alone set...
ps: tried ?postscript
haven't found answer
this produced expected dimunition in font size on device.
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()
(that image rotated 90 degrees how displays in pdf-viewer, don't think issue relates horizontal argument.)
Comments
Post a Comment