以下代码完全按照我的意愿生成格子点图,但我想自动将参考线添加到四个面板。我已经尝试搜索可以让我这样做的代码示例,但到目前为止还没有运气。谁能建议一个简单的修复?
dotplot(region ~ productivity | los,
panel = panel.superpose,
group = month,
between = list(x=1, y=0),
index.cond = list(c(4,2,1,3)),
pch = 1:4, col = 1:4,
main = "Monthly Productivity by LoS by Region",
xlab = "Percent",
aspect = 1,
key = list(space = "right",
transparent = TRUE,
points = list(pch = 1:4,
col = 1:4),
text = list(c("Jul", "Aug", "Sep", "Oct"))))
谢谢,
麦克风