例如:
mytheme <- trellis.par.get()
mytheme$strip.border$col = 'grey80'
mytheme$strip.background$col = 'grey80'
mytheme$axis.line$col = 'grey80'
mytheme$axis.text$col = 'grey60'
mytheme$plot.symbol$pch = 20
mytheme$plot.symbol$cex = .5
mytheme$plot.symbol$col = '#7AC5CD'
mytheme$plot.symbol$alpha = .8
l.sc <- update(scatter.lattice, par.settings = mytheme,
layout = c(3, 2),
between = list(x = 0.3, y = 0.3))
print(l.sc)
如何设置默认值par.settings
是mytheme
?
在书Lattice Multivariate Data Visualization with R中,第 131 页,作者给出了这个例子:
lattice.options(lattice.theme = standard.theme("pdf"))
但我不知道如何使其适应当前情况。我试过了:
lattice.options(lattice.theme = mytheme)
它不起作用。