从 lattice 包中设置 qqmath 中的图形属性?

Setting graph attributes in qqmath from the lattice package?

谁能告诉我如何在 lattice 包的 qqmath 中设置属性。具体如何增加坐标轴标题、坐标轴文本等的字体大小? None 的原生 plot 参数似乎有效。

library(lattice)

lattice::qqmath(~ rnorm(100), distribution = function(p) qt(p, df = 10),
               id=0.05,
               main = "this is a title",
               ylab = "this is a y-axis",
               xlab = "this is an x-axis",
               cex = 2,
               cex.axis = 4,
               font = 2,
               cex.lab = 4)

lattice 的帮助页面的迷宫中找到了解决方案。为了在点阵图中指定轴标签的属性,您需要在 scales 参数中使用 xy 参数,全部包含在 list() 中。要更改标题的字体大小,您还需要将所有内容包装在 list():

lattice::qqmath(~ rnorm(100), distribution = function(p) qt(p, df = 10),
               id=0.05,
               main = list("this is a title", cex = 2),
               ylab = list("this is a y-axis", cex = 3),
               xlab = list("this is an x-axis", cex = 4),
               scales = list(x = list(cex = 4)))