get.genocol | R Documentation |
For each of the dosages 0 to ploidy a color is generated, and an additional one for samples with no dosage assigned.
get.genocol(ploidy, pastel=TRUE)
ploidy |
any ploidy level >= 2 |
pastel |
if TRUE (default) light (pastel) colors are generated, else more intense colors |
the colors range from red (first item, dosage 0) via blue (dosage ploidy/2) to green (dosage ploidy); the color for missing dosage is grey
A vector of <ploidy + 2> color values; items 1 .. ploidy+1 for dosage 0 .. ploidy and item ploidy+2 for missing dosages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.