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

Rui Barradas ruipbarradas at sapo.pt
Wed Jun 5 12:01:43 CEST 2013


Hello,

See the help pages for

?abline
?par  # parameter 'col'

Hope this helps,

Rui Barradas

Em 04-06-2013 22:05, Kaptue Tchuente, Armel escreveu:
> 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).
>
> Any thoughts for a code will be very much appreciated.
>
> Thanks
>
> Armel
>
>
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list