Skip to content
Prev 66791 / 398506 Next

2d plotting and colours

I'm not sure that I understand you comment about the other examples not giving a wide palette. Are you using wide to refer to the difference in colours rather than the number of choices in the palette? If this is your issue you should look at the dichromat package that I referred to, in particular the colorRamp function. You might also want to have a look at the RColorBrewer package and run the ColorBrewer example. This package specifically deals with the ability to distinguish one colour from another.As the ColorBrewer website notes the tool is "designed to help people select good color schemes for maps and other graphics".

By the way if the mycols code works then

palette(c("brown","orange","tomato"))
plot(x,col = cl$cluster)

should produce exactly the same result.

Tom