Skip to content
Prev 44589 / 398526 Next

problem with abline for x.y

On Friday 20 February 2004 08:17, Michael Friendly wrote:
[...]
This looks like you are getting a line with equation of the form 

x = c0 + c1 y

and then plotting the line 

y = c0 + c1 y

You should probably do 

cx.y <- coef(x.y)
cx.y <- c(-cx.y[1], 1) / cx.y[2]

abline(cx.y)

[Code untested, though]

Deepayan