Skip to content
Prev 341178 / 398498 Next

abline; setting plot limits

Relatively new user with a question regarding abline.

I want to draw a st. line fit to some data but I want the line to span the
range of the x-data and NOT the plot limits.
In short the line spans xmin to xmax(of plot axis) but I want it to span
xmin to xmax (of x data).
Can this but done with abline or do I have to use lines and construct the
line from a+bx?


Paul Rydelek, Ph.D.
5232 Dorset Dr.
Memphis, TN  38117