; Aan: r-sig-geo@stat.math.ethz.ch
> Onderwerp: [R-sig-Geo] Get lm formula
>
> I have several plots where I'd like to add the formula from
> the linear model automatically, i.e. in form of y=ax+b, to
> the plot. I used lm() for a simple scatter plot.
> I was able to add the
I have several plots where I'd like to add the formula from the linear model
automatically, i.e. in form of y=ax+b, to the plot. I used lm() for a simple
scatter plot.
I was able to add the r-sqare to the plot, using summary(lm$r.square) to
extract the value for r^2. but for the coefficients a and