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
?
在書中格多元數據可視化有R,131頁,作者給出了這樣的例子:
lattice.options(lattice.theme = standard.theme("pdf"))
但我不明白如何使其適應當前的情況。我試過了:
lattice.options(lattice.theme = mytheme)
它不起作用。
有一個latticeOptions函數,可能不是那個確切的拼寫。 –
是的,它是lattice.options,但是manpage根本不清楚。 – qed
通過查看'lattice.options()'的輸出,它主要與佈局有關。 – qed