`spplot` 不尊重 `pointsize`

`spplot` doesn't respect `pointsize`

我正在使用 pointsize 来定义 PNG 输出设备中的字体大小。在这里,我将点大小设置为 24 - 默认值 12 的两倍,以便 PNG 中的字体大小也为默认值的两倍 - 但字体保持相同大小:

png('myfile.png', width = 1024, height = 640, pointsize=24)
spplot(...)
dev.off()

这种方法通常适用于各种地块,但不适用于 spplot。你知道为什么吗?

啊,找到了 lattice.options

的解决方案
require(lattice)
lattice.options(default.theme = list(fontsize = list(text = 24)))
png('myfile.png', width = 1024, height = 640)
spplot(...)
dev.off()