I want to filter my data according to sites, how can I do that for the following code? I am trying to use package dplyr, but I am unable to filter.
myData2 <- ggplot(myData,aes(year,bleaching)) +
geom_point(aes(color = site))+ facet_wrap(~kind)
myData2
myData3 <- myData2 + geom_smooth(aes(group = 1),
method = "lm",
color = "black",
formula = y~ poly(x, 2),
se = FALSE)
myData3
library(dplyr)
filter(myData3,site == "site02")
myData3