[R] plotting lines and colors

Erin Hodgess erinm.hodgess at gmail.com
Fri Aug 6 18:42:49 CEST 2010


Dear R People:

Suppose I plot the following

plot(1:50)

Is there a way to plot, say, [1:25] in red and [26:50] in blue, please?

(or should I just plot 2 separate lines, please?)

I'm about 99% sure that there is no way without 2 lines.

thanks for any help,
Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com



More information about the R-help mailing list