要绘制的数据来自使用R包
mirt
。特别是,我使用 itemplot
功能。对于没有颜色的可访问图,我使用 mirt 文档 [p. 12] 中列出的以下建议。 85]
# change colour theme of plots
bwtheme <- standard.theme("pdf", color=FALSE)
plot(pmod, type='trace', par.settings=bwtheme)
itemplot(pmod, 1, type = 'trace', par.settings=bwtheme)
除了颜色的变化,还要进行以下改动。这些是增加:
在同一文档中,建议进一步更改包
update
的lattice
功能:
# additional modifications can be made via update().
# See ?update.trellis for further documentation
我已经成功地直接在
itemplot
中解决了曲线的厚度(方面1):
plt <- itemplot(pmod, 1
, par.settings=bwtheme
, lwd = 3 # adjust line thickness
)
我也成功解决了
update
中的第 3 和第 4 方面:
update(plt
, scales = list(
cex = 2.5 # make labels on x-axis and y-axis bigger
, lwd = 4 # line ticking along the axis, greater number -> thicker
)
)
我多次尝试将
cex
及其变体用于方面 2,但都失败了。方面 5 也是如此。我能够增加线标记线宽(感谢 R 格子:如何调整图例标记线宽?)。但是,这不会使图例中的标签本身变大。一般有没有办法增加图例的大小?
如果有人能帮助我实施第 2 点和第 5 点,我将非常高兴。