[R] abline; setting plot limits

Paul Rydelek prydelek at carnegiescience.edu
Sun Jun 15 05:34:46 CEST 2014


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






More information about the R-help mailing list