I want to exclude trend lines from the following three facets:
Lawn;2014
Tussock;2013
Tussock;2015
I have tried to use subset() but I cannot figure out how to drop or exclude specific observations within geom_smooth().
plot <- ggplot(data, aes(x=CWD, y=Amount)) + geom_point(aes(colour = Year),size=2) +
geom_smooth(data = subset(data, Year =="2014"),method = "lm", formula = y ~ splines::bs(x, 3), color = "black",se = FALSE) +
facet_grid(CoverType~Year,margins=FALSE,scales="free_x",space = "fixed")