I want to remove the fill inside the legend that is created with geom_ribbon. Note that these answers do not solve this particular issue.
Minimal Working Example
library(ggplot2)
library(ggeffects)
fit <- lm(mpg ~ hp*disp, data= mtcars)
me <- ggeffect(fit,
ci.lvl = .95,
type = "fe",
terms = c("hp", "disp"))
ggplot(data = me,
mapping = aes(x = x, y = predicted, linetype = group)) +
geom_line() +
geom_ribbon(aes(ymin = conf.low,
ymax = conf.high),
alpha = .5)


