get.distinct.cols | R Documentation |
Useful if you want to colour 22 autosomes, etc, because most R colour palettes only provide 12 or fewer colours, or else provide, a gradient which is not distinguishable for discrete categories. Manually curated so the most similar colours aren't side by side.
get.distinct.cols(n = 22)
n |
number of unique colours to return |
returns vector of n colours
Nicholas Cooper njcooper@gmx.co.uk
get.distinct.cols(10) plot(1:22,pch=19,col=get.distinct.cols(22))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.