Re: [R-sig-Geo] Get lm formula

2007-07-23 Thread ONKELINX, Thierry
; 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

[R-sig-Geo] Get lm formula

2007-07-23 Thread Thomas Szegvary
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