Skip to content
Prev 332888 / 398503 Next

How to show the second abline ?

On 11/09/2013 03:04 AM, Domokos P?ter wrote:
Hi Peter,
Perhaps because both of these numbers:

coef(lm(x~y))
  (Intercept)            y
-176.5047160    0.7425131

are off the scale of your plot. Do you really want:

lmcoef<-coef(lm(y~x))
abline(lmcoef[1]-210,lmcoef[2],col=1)

Jim