[R] repeating colors in graph 2
Thomas Lumley
tlumley at u.washington.edu
Thu Oct 23 20:38:41 CEST 2003
On Thu, 23 Oct 2003, Anna Pryor wrote:
> I've tried looking at ?colors and ?palette and if I'm understanding it
> correctly, I'm supposed to type in (for example) palette(rainbow(13)) before
> I type in my plot (of 13 lines) if I want 13 different colors. But this does
> not work. Other things that i have tried besides rainbow give me errors.
> Am I just doing something completely wrong?
>
In what sense does it not work? I get thirteen different colors. They
aren't very different, but if you want thirteen easily distinguishable
colors you will have to choose them yourself rather than relying on
rainbow().
-thomas
More information about the R-help
mailing list