I am trying to build line graphs for and facet_wrap for each dataset. What I would like to have is light gray, transparent, or something else, all datasets in the background.
df <- data.frame(id=rep(letters[1:5], each=10), x=seq(10), y=runif(50)) ggplot(df, aes(x,y, group=id)) + geom_line() + facet_wrap(~ id)

This graph is how far I get, but I would like everyone else to have 4 lines on each graph ... In any case, I try to use facet_wrap , I only get data from one line.
What I expect will be like this for every facet.
ggplot(df, aes(x,y, group=id)) + geom_line() + geom_line(data=df[1:10,], aes(x,y, group=id), size=5)

source share