Browse code

Commit made by the Bioconductor Git-SVN bridge.

Commit id: 9d7fc297a370b44dd3bfb12696ed9eac33aed48a

refreshed documentations



git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/ComplexHeatmap@105365 bc3139a8-67e5-0310-9ffc-ced21a209358

z.gu authored on 23/06/2015 10:24:06
Showing 61 changed files

... ...
@@ -14,6 +14,9 @@
14 14
 # Here we use colors to map to the density values and visualize distribution of values
15 15
 # in each column (or each list element) through a heatmap.
16 16
 #
17
+# == value
18
+# No value is returned.
19
+#
17 20
 # == example
18 21
 # matrix = matrix(rnorm(100), 10); colnames(matrix) = letters[1:10]
19 22
 # densityHeatmap(matrix)
... ...
@@ -16,6 +16,7 @@ It is only designed for \code{+} generic method so that above three classes can
16 16
 }
17 17
 \examples{
18 18
 
19
+
19 20
 # no example
20 21
 NULL
21 22
 
... ...
@@ -28,6 +28,7 @@ Zuguang Gu <z.gu@dkfz.de>
28 28
 }
29 29
 \examples{
30 30
 
31
+
31 32
 # no example
32 33
 NULL
33 34
 
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 # for examples, please go to `ColorMapping` method page
35 36
 NULL
36 37
 
... ...
@@ -35,6 +35,7 @@ Zuguang Gu <z.gu@dkfz.de>
35 35
 }
36 36
 \examples{
37 37
 
38
+
38 39
 # discrete color mapping for characters
39 40
 cm = ColorMapping(name = "test",
40 41
     colors = c("blue", "white", "red"),
... ...
@@ -73,6 +73,7 @@ Zuguang Gu <z.gu@dkfz.de>
73 73
 }
74 74
 \examples{
75 75
 
76
+
76 77
 # for examples, please go to `Heatmap` method page
77 78
 NULL
78 79
 
... ...
@@ -112,6 +112,7 @@ Zuguang Gu <z.gu@dkfz.de>
112 112
 }
113 113
 \examples{
114 114
 
115
+
115 116
 mat = matrix(rnorm(80, 2), 8, 10)
116 117
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
117 118
 rownames(mat) = letters[1:12]
... ...
@@ -30,6 +30,7 @@ Zuguang Gu <z.gu@dkfz.de>
30 30
 }
31 31
 \examples{
32 32
 
33
+
33 34
 # for examples, please go to `HeatmapAnnotation` method page
34 35
 NULL
35 36
 
... ...
@@ -47,6 +47,7 @@ Zuguang Gu <z.gu@dkfz.de>
47 47
 }
48 48
 \examples{
49 49
 
50
+
50 51
 df = data.frame(type = c("a", "a", "a", "b", "b", "b"))
51 52
 ha = HeatmapAnnotation(df = df)
52 53
 
... ...
@@ -69,6 +69,7 @@ Zuguang Gu <z.gu@dkfz.de>
69 69
 }
70 70
 \examples{
71 71
 
72
+
72 73
 mat = matrix(rnorm(80, 2), 8, 10)
73 74
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
74 75
 rownames(mat) = letters[1:12]
... ...
@@ -28,9 +28,11 @@ Zuguang Gu <z.gu@dkfz.de>
28 28
 }
29 29
 \section{Detailes}{
30 30
 
31
+
31 32
 There is no public constructor method for the \code{\link{HeatmapList-class}}.}
32 33
 \examples{
33 34
 
35
+
34 36
 # no example
35 37
 NULL
36 38
 
... ...
@@ -40,6 +40,7 @@ Zuguang Gu <z.gu@dkfz.de>
40 40
 }
41 41
 \examples{
42 42
 
43
+
43 44
 # for examples, please go to `SingleAnnotation` method page
44 45
 NULL
45 46
 
... ...
@@ -49,6 +49,7 @@ Zuguang Gu <z.gu@dkfz.de>
49 49
 }
50 50
 \examples{
51 51
 
52
+
52 53
 # discrete character
53 54
 SingleAnnotation(name = "test", value = c("a", "a", "a", "b", "b", "b"))
54 55
 SingleAnnotation(name = "test", value = c("a", "a", "a", "b", "b", "b"), 
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 mat = matrix(rnorm(80, 2), 8, 10)
36 37
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
37 38
 rownames(mat) = letters[1:12]
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 mat = matrix(rnorm(80, 2), 8, 10)
33 34
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
34 35
 rownames(mat) = letters[1:12]
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 mat = matrix(rnorm(80, 2), 8, 10)
33 34
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
34 35
 rownames(mat) = letters[1:12]
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 mat = matrix(rnorm(80, 2), 8, 10)
33 34
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
34 35
 rownames(mat) = letters[1:12]
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 f = anno_barplot(rnorm(10))
36 37
 grid.newpage(); f(1:10)
37 38
 
... ...
@@ -33,6 +33,7 @@ Zuguang Gu <z.gu@dkfz.de>
33 33
 }
34 34
 \examples{
35 35
 
36
+
36 37
 mat = matrix(rnorm(32), nrow = 4)
37 38
 f = anno_boxplot(mat)
38 39
 grid.newpage(); f(1:8)
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 mat = matrix(rnorm(32), nrow = 4)
33 34
 f = anno_density(mat)
34 35
 grid.newpage(); f(1:8)
... ...
@@ -27,6 +27,7 @@ Zuguang Gu <z.gu@dkfz.de>
27 27
 }
28 28
 \examples{
29 29
 
30
+
30 31
 mat = matrix(rnorm(32), nrow = 4)
31 32
 f = anno_histogram(mat)
32 33
 grid.newpage(); f(1:8)
... ...
@@ -34,6 +34,7 @@ Zuguang Gu <z.gu@dkfz.de>
34 34
 }
35 35
 \examples{
36 36
 
37
+
37 38
 f = anno_points(rnorm(10))
38 39
 grid.newpage(); f(1:10)
39 40
 
... ...
@@ -30,6 +30,7 @@ Zuguang Gu <z.gu@dkfz.de>
30 30
 }
31 31
 \examples{
32 32
 
33
+
33 34
 mat = matrix(rnorm(100), 10)
34 35
 colnames(mat) = letters[1:10]
35 36
 rownames(mat) = LETTERS[1:10]
... ...
@@ -34,6 +34,7 @@ Zuguang Gu <z.gu@dkfz.de>
34 34
 }
35 35
 \examples{
36 36
 
37
+
37 38
 # no example for this internal method
38 39
 NULL
39 40
 
... ...
@@ -39,6 +39,7 @@ Zuguang Gu <z.gu@dkfz.de>
39 39
 }
40 40
 \examples{
41 41
 
42
+
42 43
 # discrete color mapping for characters
43 44
 cm = ColorMapping(name = "test",
44 45
     colors = c("blue", "white", "red"),
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 df = data.frame(type = c("a", "a", "a", "b", "b", "b"))
36 37
 ha = rowAnnotation(df = df)
37 38
 
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 # no example for this internal method
33 34
 
34 35
 }
... ...
@@ -25,6 +25,7 @@ Zuguang Gu <z.gu@dkfz.de>
25 25
 }
26 26
 \examples{
27 27
 
28
+
28 29
 # no example for this internal method
29 30
 
30 31
 }
... ...
@@ -21,6 +21,7 @@ This function is only for internal use.
21 21
 }
22 22
 \section{Detials}{
23 23
 
24
+
24 25
 This function is only for internal use.}
25 26
 \value{
26 27
 A \code{\link[grid]{unit}} object.
... ...
@@ -32,6 +33,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 33
 }
33 34
 \examples{
34 35
 
36
+
35 37
 # no example for this internal method
36 38
 
37 39
 }
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 # no example for this internal method
33 34
 
34 35
 }
... ...
@@ -25,6 +25,10 @@ To visualize distribution of columns in a matrix or in a list, sometimes we use
25 25
 Here we use colors to map to the density values and visualize distribution of values
26 26
 in each column (or each list element) through a heatmap.
27 27
 
28
+}
29
+\value{
30
+No value is returned.
31
+
28 32
 }
29 33
 \examples{
30 34
 matrix = matrix(rnorm(100), 10); colnames(matrix) = letters[1:10]
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 mat = matrix(rnorm(40), nr = 4, ncol = 10)
35 36
 rownames(mat) = letters[1:4]
36 37
 colnames(mat) = letters[1:10]
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 mat = matrix(rnorm(80, 2), 8, 10)
36 37
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
37 38
 rownames(mat) = letters[1:12]
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 df = data.frame(type = c("a", "a", "a", "b", "b", "b"))
35 36
 ha = HeatmapAnnotation(df = df)
36 37
 grid.newpage(); draw(ha, 1:6)
... ...
@@ -34,6 +34,7 @@ Zuguang Gu <z.gu@dkfz.de>
34 34
 }
35 35
 \examples{
36 36
 
37
+
37 38
 mat = matrix(rnorm(80, 2), 8, 10)
38 39
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
39 40
 rownames(mat) = letters[1:12]
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 anno = SingleAnnotation(name = "test", value = c("a", "a", "a", "b", "b", "b"))
36 37
 grid.newpage(); draw(anno, 1:5)
37 38
 grid.newpage(); draw(anno, c(1, 4, 3, 5, 2))
... ...
@@ -35,6 +35,7 @@ Zuguang Gu <z.gu@dkfz.de>
35 35
 }
36 36
 \examples{
37 37
 
38
+
38 39
 # no example for this internal method
39 40
 NULL
40 41
 
... ...
@@ -33,6 +33,7 @@ Zuguang Gu <z.gu@dkfz.de>
33 33
 }
34 34
 \examples{
35 35
 
36
+
36 37
 # no example for this internal method
37 38
 NULL
38 39
 
... ...
@@ -36,6 +36,7 @@ Zuguang Gu <z.gu@dkfz.de>
36 36
 }
37 37
 \examples{
38 38
 
39
+
39 40
 # no example for this internal method
40 41
 NULL
41 42
 
... ...
@@ -43,6 +43,7 @@ Zuguang Gu <z.gu@dkfz.de>
43 43
 }
44 44
 \examples{
45 45
 
46
+
46 47
 # no example for this internal method
47 48
 NULL
48 49
 
... ...
@@ -37,6 +37,7 @@ Zuguang Gu <z.gu@dkfz.de>
37 37
 }
38 38
 \examples{
39 39
 
40
+
40 41
 # no example for this internal method
41 42
 NULL
42 43
 
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 # no example for this internal method
36 37
 NULL
37 38
 
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 # no example for this internal method
35 36
 NULL
36 37
 
... ...
@@ -34,6 +34,7 @@ Zuguang Gu <z.gu@dkfz.de>
34 34
 }
35 35
 \examples{
36 36
 
37
+
37 38
 # no example for this internal method
38 39
 NULL
39 40
 
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 # no example for this internal method
36 37
 NULL
37 38
 
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 # no example for this internal method
35 36
 NULL
36 37
 
... ...
@@ -35,6 +35,7 @@ Zuguang Gu <z.gu@dkfz.de>
35 35
 }
36 36
 \examples{
37 37
 
38
+
38 39
 hc = hclust(dist(USArrests[1:5, ]))
39 40
 dend = as.dendrogram(hc)
40 41
 
... ...
@@ -30,6 +30,7 @@ Zuguang Gu <z.gu@dkfz.de>
30 30
 }
31 31
 \examples{
32 32
 
33
+
33 34
 # no example for this internal method
34 35
 NULL
35 36
 
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 # no example for this internal method
35 36
 NULL
36 37
 
... ...
@@ -34,6 +34,7 @@ Zuguang Gu <z.gu@dkfz.de>
34 34
 }
35 35
 \examples{
36 36
 
37
+
37 38
 # no example for this internal method
38 39
 NULL
39 40
 
... ...
@@ -59,6 +59,7 @@ Zuguang Gu <z.gu@dkfz.de>
59 59
 }
60 60
 \examples{
61 61
 
62
+
62 63
 # no example for this internal method
63 64
 NULL
64 65
 
... ...
@@ -33,6 +33,7 @@ Zuguang Gu <z.gu@dkfz.de>
33 33
 }
34 34
 \examples{
35 35
 
36
+
36 37
 # no example for this internal method
37 38
 NULL
38 39
 
... ...
@@ -30,6 +30,7 @@ Zuguang Gu <z.gu@dkfz.de>
30 30
 }
31 31
 \examples{
32 32
 
33
+
33 34
 # discrete color mapping for characters
34 35
 cm = ColorMapping(name = "test",
35 36
     colors = c("blue", "white", "red"),
... ...
@@ -24,3 +24,8 @@ they can pass parameters directly to \code{\link{draw,HeatmapList-method}}.
24 24
 This function returns no value.
25 25
 
26 26
 }
27
+\examples{
28
+
29
+# no example 
30
+NULL
31
+}
... ...
@@ -47,6 +47,7 @@ Zuguang Gu <z.gu@dkfz.de>
47 47
 }
48 48
 \examples{
49 49
 
50
+
50 51
 df = data.frame(matrix(rnorm(40), nrow = 10, dimnames = list(letters[1:10], letters[1:4])),
51 52
                 large = runif(10)*100,
52 53
                 t1 = sample(letters[1:3], 10, replace = TRUE),
... ...
@@ -38,6 +38,7 @@ Zuguang Gu <z.gu@dkfz.de>
38 38
 }
39 39
 \examples{
40 40
 
41
+
41 42
 # no example for this internal method
42 43
 NULL
43 44
 
... ...
@@ -24,3 +24,8 @@ they can pass parameters directly to \code{\link{draw,HeatmapList-method}}.
24 24
 This function returns no value.
25 25
 
26 26
 }
27
+\examples{
28
+
29
+# no example 
30
+NULL
31
+}
... ...
@@ -32,6 +32,7 @@ Zuguang Gu <z.gu@dkfz.de>
32 32
 }
33 33
 \examples{
34 34
 
35
+
35 36
 df = data.frame(type = c("a", "a", "a", "b", "b", "b"))
36 37
 ha = columnAnnotation(df = df)
37 38
 
... ...
@@ -31,6 +31,7 @@ Zuguang Gu <z.gu@dkfz.de>
31 31
 }
32 32
 \examples{
33 33
 
34
+
34 35
 # no example for this internal method
35 36
 NULL
36 37
 
... ...
@@ -29,6 +29,7 @@ Zuguang Gu <z.gu@dkfz.de>
29 29
 }
30 30
 \examples{
31 31
 
32
+
32 33
 mat = matrix(rnorm(80, 2), 8, 10)
33 34
 mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
34 35
 rownames(mat) = letters[1:12]
... ...
@@ -25,6 +25,7 @@ This function returns no value.
25 25
 }
26 26
 \author{
27 27
 
28
+
28 29
 Zuguang Gu <z.gu@dkfz.de>
29 30
 
30 31
 }