How can I insert R-squared in my ggplot.My data is here dat
So far, I have done this
df=read_csv("df.csv",col_names = TRUE)
library(ggplot2)
ggplot(df, aes(x =Precip_mm, y =simu_peak , colour = month)) +
geom_point() +
facet_wrap( ~ month )+
xlab("Measured") + ylab("Simulated")+
geom_smooth(method = "lm", se=FALSE, color="black", formula = y ~ x)