[R] abline limit constrain x-range how?

David Winsemius dwinsemius at comcast.net
Sat May 15 16:09:18 CEST 2010

On May 15, 2010, at 10:03 AM, Giovanni Azua wrote:

> Hello,
> I managed to "linearize" my LDA decision boundaries now I would like  
> to call abline three times but be able to specify the exact x range.  
> I was reading the doc but it doesn't seem to support this use-case?  
> are there alternatives.


abline draws a line across the whole plot area, border to border. Both  
lines() and segments() will add to an existing plot (assuming it was  
done with base graphics).

> The reason why I use abline is because I first call plot to plot all  
> the three datasets and then call abline to "append" these decision  
> boundary lines to the existing plot ...
> Can anyone please advice?
> Thanks in advance,
> Best regards,
> Giovanni
> ______________________________________________
> R-help at 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.

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list