Skip to content
Prev 44588 / 398526 Next

problem with abline for x.y

Michael Friendly <friendly at yorku.ca> writes:
Not precisely, though.
The thing that you need in the x.y case  is that

x = a + by

implies

y = 1/b x  -  a/b

so you need 

cc <- coef(x.y)
abline(-cc[1]/cc[2], 1/cc[2], ....)