[R] abline?

Dennis P. Weygand dpweygand at gmail.com
Thu Jan 22 20:39:33 CET 2015


I am a very new user of R, trying to do a linear fit to data,

plot(r2,d)

plots my data correctly, I do a linear fit:

res = lm(r2~d)

gives a fit to the data, but

abline(res,col=“red”)

displays nothing. Again, I am a novice, but what am I doing wrong?

DPW


More information about the R-help mailing list