git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MineICA@73179 bc3139a8-67e5-0310-9ffc-ced21a209358
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+\name{annot2Color} |
|
2 |
+\alias{annot2Color} |
|
3 |
+\title{Association of a colour with each annotation level} |
|
4 |
+\usage{ |
|
5 |
+ annot2Color(annot) |
|
6 |
+} |
|
7 |
+\arguments{ |
|
8 |
+ \item{annot}{a data.frame containing the sample |
|
9 |
+ annotations (of dimension 'samples x annotations').} |
|
10 |
+} |
|
11 |
+\value{ |
|
12 |
+ A vector of colours indexed by the annotation levels. |
|
13 |
+} |
|
14 |
+\description{ |
|
15 |
+ Given a data.frame consisting of sample annotations, this |
|
16 |
+ function returns a vector which gives a colour per |
|
17 |
+ annotation level. |
|
18 |
+} |
|
19 |
+\details{ |
|
20 |
+ Arbitrary colours are attributed to some specific |
|
21 |
+ annotations met by the author, and for the remaining |
|
22 |
+ annotation levels, the colours are attributed using |
|
23 |
+ packages \code{RColorBrewer} and \code{rcolorspace}. |
|
24 |
+} |
|
25 |
+\author{ |
|
26 |
+ Anne Biton |
|
27 |
+} |
|
28 |
+ |