Add linear regression model equation and R2 value into the graph

I am able to prepare the graph with scattered line but I could not put the regression equatin and r2 into the graph.
Please help me if any one can.

My code for scatter graph with regression line:
ggplot (data = data, mapping = aes(x= CCNDVI, y= DW)) + xlim(0.4, 0.8) + ylim (50, 350) + geom_point(color = "Red", shape = 20, size = 4) + geom_smooth(method = "lm",se = FALSE)+ theme_bw()

There are a number of ways to do it. Including:

Thanks for your assistance.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.