annot2Color | R Documentation |
Given a data.frame consisting of sample annotations, this function returns a vector which gives a colour per annotation level.
annot2Color(annot)
annot |
a data.frame containing the sample annotations (of dimension 'samples x annotations'). |
Arbitrary colours are attributed to some specific
annotations met by the author, and for the remaining
annotation levels, the colours are attributed using
packages RColorBrewer
and rcolorspace
.
A vector of colours indexed by the annotation levels.
Anne Biton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.