annot2Color: Association of a colour with each annotation level
Description
Given a data.frame consisting of sample annotations, this
function returns a vector which gives a colour per
annotation level.
Usage
annot2Color(annot)
Arguments
annot
a data.frame containing the sample
annotations (of dimension 'samples x annotations').
Value
A vector of colours indexed by the annotation levels.
Details
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.