r - Unable to change the global pointsize for lattice displays -
i need produce series of pdf plots lattice bundle in r, text pointsize mandated journal in published.
following give-and-take here,, can alter pointsize on plot plot basis:
library(lattice) trellis.device("pdf", pointsize=30) trellis.par.set(fontsize = list(text = null)) xyplot(1:10 ~ 1:10) dev.off() this yields next plot:
but seek set global option:
library(lattice) lattice.options(default.theme = list(fontsize = list(text = null))) trellis.device("png", pointsize=30) xyplot(1:10 ~ 1:10) dev.off() and doesn't yield same results:
so how can alter global pointsize lattice plots?
r lattice
No comments:
Post a Comment