annot2Color: Association of a colour with each annotation level

Description Usage Arguments Details Value Author(s)

Description

Given a data.frame consisting of sample annotations, this function returns a vector which gives a colour per annotation level.

Usage

1
  annot2Color(annot)

Arguments

annot

a data.frame containing the sample annotations (of dimension 'samples x annotations').

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.

Value

A vector of colours indexed by the annotation levels.

Author(s)

Anne Biton


MineICA documentation built on Nov. 8, 2020, 5:35 p.m.