Description Usage Arguments Details Value Author(s) Examples
Returns a rainbow of colours, permuted so that adjacent elements constrast each other as much as possible.
1  | 
x | 
 number of colours in the rainbow.  | 
... | 
 other arguments to be passed to   | 
The permutation is chosen by finding the largest coprime of x
that is not greater than x/2, and using that coprime as an
increment size to cycle through the normal rainbow.
A vector of colours of length x.
Toby Johnson Toby.x.Johnson@gsk.com
1 2 3  | ## contrasting colours suitable for Manhattan plot for 22 autosomes
plot(1:22, rep(1, 22), pch = 22, cex = 2, ann = FALSE, 
     yaxt = "n", bg = contrasting.rainbow(22))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.