Your (understandable) mistake is to think that you should be changing the color rather than the fill. The standard error shadings are made with geom_ribbon
essentially, and they are a 2d area, so the "color" they are "filled" with is determined by fill
, not colour
.
Try:
geom_smooth(aes(...,fill = variable))
where variable is the same one you map to colour elsewhere.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…