[R] repeating colors in graph 2

Thomas Lumley tlumley at u.washington.edu
Thu Oct 23 22:26:17 CEST 2003


On Thu, 23 Oct 2003, James MacDonald wrote:

> I believe you want plot(blah blah, col=palette(rainbow(13)))
>

No.  palette() sets the default palette, so
eg
> palette(rainbow(13))
> plot(1:13,col=1:13)

will plot in the new palette.

	-thomas




More information about the R-help mailing list