Re: [R] Help with coloring segments on a plot

2011-05-03 Thread Jim Lemon
On 05/03/2011 04:26 AM, Paul Davison wrote: Hi. I need a very short piece of help regarding colouring segments plotted on a graph. When I am plotting segments for the graph, I am using "red" and "darkgreen for the values "1" and "2" respectively. Heres the relevant line of code in R: Hi Paul,

Re: [R] Help with coloring segments on a plot

2011-05-02 Thread Andrew Robinson
Hi Paul, not to seem naive, but have you actually tried the code below? It doesn't seem that you have, from your text. I think that if you try it and hack then ask concrete questions (e.g. can anyone explain why the following simple, reproducible, commented code does not work) then you'll have m

[R] Help with coloring segments on a plot

2011-05-02 Thread Paul Davison
Hi. I need a very short piece of help regarding colouring segments plotted on a graph. When I am plotting segments for the graph, I am using "red" and "darkgreen for the values "1" and "2" respectively. Heres the relevant line of code in R: + col = c("red", "darkgreen")[line.colour.value]) I jus