[R] How to display multiples lines with different color on the same plot?

David Winsemius dwinsemius at comcast.net
Wed Jun 5 13:53:23 CEST 2013

On Jun 4, 2013, at 3:05 PM, Kaptue Tchuente, Armel wrote:

> Hi all,
> I'm struggling with the display of several regression lines (with  
> different colors) on the same plot.
> I manually drew what I'm trying to do with 8 lines (see attached).

If you want lines that only span a portion of a plot area, then you  
should be looking at the segments function.


David Winsemius, MD
Alameda, CA, USA

More information about the R-help mailing list