2
例で作成されたような通常の曲線の下の2つの区間の間の領域を色付け/シェードしたいと思います。間隔は125かもしれない:140または140ラティスの曲線下の色の領域
library(lattice)
e4a <- seq(60, 170, length = 10000)
e4b <- dnorm(e4a, 110, 15)
xyplot(e4b ~ e4a,
type = "l",
scales = list(x = list(at = seq(60, 170, 5)), rot = 45),
panel = function(x, ...){
panel.xyplot(x, ...)
panel.abline(v = c(110, 125, 95, 140, 80, 95), lty = 2)
})
を超えたセグメント私はR graphic base systemのための本当に簡単な解決策を見つけたが、私は、ラティスのための同等の解決策を見つけることができませんでした。
@ Hack-R That's base graphics。 –