I have a data-set, and I am trying to fit a linear model using lm()
. That part is straight forward.
I can also plot this fit to a graph of the scatter plot using abline( lm( x ~ y ) )
.
But now I want to write the parameters of the fit such as adjusted r-squared
along the line.
So that if I hover plot different data-sets and their respective fits, I should be able to print some of the values for the fit along the line.
Is it possible to do this in R.