【发布时间】:2016-02-08 03:41:25
【问题描述】:
以下代码完全按照我的意愿生成网格点图,但我想自动将参考线添加到四个面板。我已经尝试搜索可以让我这样做的代码示例,但到目前为止还没有运气。谁能建议一个简单的解决方法?
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"))))
谢谢,
迈克
【问题讨论】:
-
函数
layer和panel.abline来自latticeExtra。