On 09/20/2010 07:31 PM, elaine kuo wrote:
Dear List,



I ran a regression model using lm and produced a regression line using
abline.


The line ranges from -20 to 20 in x axis,

and the section I only want is from -20 to 0.



Please kindly advise any function in abline () to set the range of x axes.

Hi Elaine,
As already noted, you may not really want to do this, but ablineclip in the plotrix package will do it for you.

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to