Re: [R] plotting lines and colors

2010-08-06 Thread Joshua Wiley
On Fri, Aug 6, 2010 at 9:42 AM, Erin Hodgess wrote: > 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? One simple way is with the col argument, there are certainly fancier solutions too. plot(1:50, col = re

[R] plotting lines and colors

2010-08-06 Thread Erin Hodgess
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 Ass