Skip to content
Prev 334202 / 398506 Next

Problem with R colors

Hi,

col=552 isn't the same as colors()[552] - I think the former is drawn
from your current palette, with recycling of indices. The default
color palette has only eight colors.

You need instead

col=colors()[552]

It's very difficult to get 20-30 readily distinguishable colors. You
might try the RColorBrewer package for smaller tasks, though.


Sarah
On Mon, Dec 9, 2013 at 5:12 PM, Katharine Miller <kmill117 at alaska.edu> wrote: