... | ... |
@@ -215,7 +215,8 @@ anno_simple = function(x, col, na_col = "grey", |
215 | 215 |
if(!is.null(pch)) { |
216 | 216 |
l = !is.na(pch[, i]) |
217 | 217 |
grid.points(x = rep((i-0.5)/nc, sum(l)), y = y[l], pch = pch[l, i], |
218 |
- size = pt_size[i], gp = subset_gp(pt_gp, i)) |
|
218 |
+ size = {if(length(pt_size) == 1) pt_size else pt_size[i]}, |
|
219 |
+ gp = subset_gp(pt_gp, i)) |
|
219 | 220 |
} |
220 | 221 |
} |
221 | 222 |
} else { |
... | ... |
@@ -246,7 +247,8 @@ anno_simple = function(x, col, na_col = "grey", |
246 | 247 |
pch = pch[index, , drop = FALSE] |
247 | 248 |
l = !is.na(pch[, i]) |
248 | 249 |
grid.points(x[l], y = rep((nc-i +0.5)/nc, sum(l)), pch = pch[l, i], |
249 |
- size = pt_size[i], gp = subset_gp(pt_gp, i)) |
|
250 |
+ size = {if(length(pt_size) == 1) pt_size else pt_size[i]}, |
|
251 |
+ gp = subset_gp(pt_gp, i)) |
|
250 | 252 |
} |
251 | 253 |
} |
252 | 254 |
} else { |
... | ... |
@@ -375,7 +375,7 @@ setMethod(f = "make_layout", |
375 | 375 |
layout_size = object@layout$layout_size |
376 | 376 |
if(is_abs_unit(object@heatmap_param$width)) { |
377 | 377 |
# recalcualte the width of heatmap body |
378 |
- object@matrix_param$width = object@heatmap_param$width - |
|
378 |
+ object@matrix_param$width = convertWidth(object@heatmap_param$width - |
|
379 | 379 |
sum(layout_size$row_title_left_width, |
380 | 380 |
layout_size$row_dend_left_width, |
381 | 381 |
layout_size$row_anno_left_width, |
... | ... |
@@ -383,9 +383,12 @@ setMethod(f = "make_layout", |
383 | 383 |
layout_size$row_dend_right_width, |
384 | 384 |
layout_size$row_anno_right_width, |
385 | 385 |
layout_size$row_names_right_width, |
386 |
- layout_size$row_title_right_width) |
|
386 |
+ layout_size$row_title_right_width), "mm") |
|
387 |
+ if(object@matrix_param$width[[1]] <= 0) { |
|
388 |
+ stop_wrap("width of the heatmap body is negative, maybe `heatmap_width` you set is too small. Note `heatmap_width` is the width of the complete heatmap.") |
|
389 |
+ } |
|
387 | 390 |
} else if(is_abs_unit(object@matrix_param$width)) { # e.g. unit(1, "npc") |
388 |
- object@heatmap_param$width = sum( |
|
391 |
+ object@heatmap_param$width = convertWidth(sum( |
|
389 | 392 |
layout_size$row_title_left_width, |
390 | 393 |
layout_size$row_dend_left_width, |
391 | 394 |
layout_size$row_names_left_width, |
... | ... |
@@ -394,7 +397,7 @@ setMethod(f = "make_layout", |
394 | 397 |
layout_size$row_title_right_width, |
395 | 398 |
layout_size$row_anno_left_width, |
396 | 399 |
layout_size$row_anno_right_width |
397 |
- ) + object@matrix_param$width |
|
400 |
+ ) + object@matrix_param$width, "mm") |
|
398 | 401 |
if(nc_slice > 1) { |
399 | 402 |
object@heatmap_param$width = object@heatmap_param$width + sum(column_gap[seq_len(nc_slice-1)]) |
400 | 403 |
} |
... | ... |
@@ -403,7 +406,7 @@ setMethod(f = "make_layout", |
403 | 406 |
} |
404 | 407 |
|
405 | 408 |
if(is_abs_unit(object@heatmap_param$height)) { |
406 |
- object@matrix_param$height = object@heatmap_param$height - |
|
409 |
+ object@matrix_param$height = convertHeight(object@heatmap_param$height - |
|
407 | 410 |
sum(layout_size$column_title_top_height, |
408 | 411 |
layout_size$column_dend_top_height, |
409 | 412 |
layout_size$column_anno_top_height, |
... | ... |
@@ -411,9 +414,12 @@ setMethod(f = "make_layout", |
411 | 414 |
layout_size$column_title_bottom_height, |
412 | 415 |
layout_size$column_dend_bottom_height, |
413 | 416 |
layout_size$column_anno_bottom_height, |
414 |
- layout_size$column_names_bottom_height) |
|
417 |
+ layout_size$column_names_bottom_height), "mm") |
|
418 |
+ if(object@matrix_param$height[[1]] <= 0) { |
|
419 |
+ stop_wrap("height of the heatmap body is negative, maybe `heatmap_height` you set is too small. Note `heatmap_height` is the height of the complete heatmap.") |
|
420 |
+ } |
|
415 | 421 |
} else if(is_abs_unit(object@matrix_param$height)) { |
416 |
- object@heatmap_param$height = sum( |
|
422 |
+ object@heatmap_param$height = convertHeight(sum( |
|
417 | 423 |
layout_size$column_title_top_height, |
418 | 424 |
layout_size$column_dend_top_height, |
419 | 425 |
layout_size$column_anno_top_height, |
... | ... |
@@ -422,7 +428,7 @@ setMethod(f = "make_layout", |
422 | 428 |
layout_size$column_dend_bottom_height, |
423 | 429 |
layout_size$column_anno_bottom_height, |
424 | 430 |
layout_size$column_names_bottom_height |
425 |
- ) + object@matrix_param$height |
|
431 |
+ ) + object@matrix_param$height, "mm") |
|
426 | 432 |
if(nr_slice > 1) { |
427 | 433 |
object@heatmap_param$height = object@heatmap_param$height + sum(row_gap[seq_len(nr_slice-1)]) |
428 | 434 |
} |
... | ... |
@@ -107,6 +107,9 @@ HeatmapAnnotation = function(..., |
107 | 107 |
simple_anno_size_adjust = FALSE |
108 | 108 |
) { |
109 | 109 |
|
110 |
+ dev.null() |
|
111 |
+ on.exit(dev.off2()) |
|
112 |
+ |
|
110 | 113 |
.ENV$current_annotation_which = NULL |
111 | 114 |
which = match.arg(which)[1] |
112 | 115 |
.ENV$current_annotation_which = which |
... | ... |
@@ -271,7 +274,7 @@ HeatmapAnnotation = function(..., |
271 | 274 |
len = len[len > 0] |
272 | 275 |
if(length(len)) { |
273 | 276 |
if(length(unique(len)) > 1) { |
274 |
- stop_wrap("Length of annotations differs.") |
|
277 |
+ stop_wrap(paste0("Length of annotations differs. ", paste(qq("@{names(len)}: @{len}", collapse = FALSE), collapse = ", "))) |
|
275 | 278 |
} |
276 | 279 |
} |
277 | 280 |
|
... | ... |
@@ -361,9 +361,9 @@ setMethod(f = "column_dend", |
361 | 361 |
|
362 | 362 |
|
363 | 363 |
|
364 |
-proper_format_lt = function(lt) { |
|
364 |
+proper_format_lt = function(lt) { |
|
365 | 365 |
n_ht = length(lt) |
366 |
- # for a single heatmap |
|
366 |
+ |
|
367 | 367 |
if(n_ht == 1) { |
368 | 368 |
if(length(lt[[1]]) == 1) { |
369 | 369 |
return(lt[[1]][[1]]) |
... | ... |
@@ -371,7 +371,13 @@ proper_format_lt = function(lt) { |
371 | 371 |
return(lt[[1]]) |
372 | 372 |
} |
373 | 373 |
} else { |
374 |
- has_splitting = any(sapply(lt, function(x) length(x) != 1)) |
|
374 |
+ l_empty = sapply(lt, function(x) length(x) == 0) |
|
375 |
+ lt = lt[!l_empty] |
|
376 |
+ if(length(lt) == 0) { |
|
377 |
+ return(NULL) |
|
378 |
+ } |
|
379 |
+ |
|
380 |
+ has_splitting = any(sapply(lt, function(x) length(x) > 1)) |
|
375 | 381 |
if(has_splitting) { |
376 | 382 |
return(lt) |
377 | 383 |
} else { |
... | ... |
@@ -23,6 +23,8 @@ |
23 | 23 |
# -column_names_gp Pass to `Heatmap`. |
24 | 24 |
# -column_names_rot Pass to `Heatmap`. |
25 | 25 |
# -cluster_columns Whether cluster columns (here clustered by density values)? Normally we don't cluster columns. |
26 |
+# - clustering_distance_columns |
|
27 |
+# -clustering_method_columns |
|
26 | 28 |
# -... pass to `Heatmap`. |
27 | 29 |
# |
28 | 30 |
# == details |
... | ... |
@@ -97,7 +99,7 @@ densityHeatmap = function(data, |
97 | 99 |
|
98 | 100 |
density_param$na.rm = TRUE |
99 | 101 |
|
100 |
- if(!is.matrix(data) && !is.data.frame(matrix) && !is.list(matrix)) { |
|
102 |
+ if(!is.matrix(data) && !is.data.frame(data) && !is.list(data)) { |
|
101 | 103 |
stop("only matrix and list are allowed.") |
102 | 104 |
} |
103 | 105 |
if(is.matrix(data)) { |
... | ... |
@@ -104,6 +104,9 @@ Legend = function(at, labels = at, col_fun, nrow = NULL, ncol = 1, by_row = FALS |
104 | 104 |
title = "", title_gp = gpar(fontsize = 10, fontface = "bold"), |
105 | 105 |
title_position = c("topleft", "topcenter", "leftcenter", "lefttop", "leftcenter-rot", "lefttop-rot")) { |
106 | 106 |
|
107 |
+ dev.null() |
|
108 |
+ on.exit(dev.off2()) |
|
109 |
+ |
|
107 | 110 |
if(missing(at) && !missing(labels)) { |
108 | 111 |
at = seq_along(labels) |
109 | 112 |
} |
... | ... |
@@ -758,6 +761,9 @@ packLegend = function(...,gap = unit(2, "mm"), row_gap = unit(2, "mm"), column_g |
758 | 761 |
direction = c("vertical", "horizontal"), |
759 | 762 |
max_width = NULL, max_height = NULL, list = NULL) { |
760 | 763 |
|
764 |
+ dev.null() |
|
765 |
+ on.exit(dev.off2()) |
|
766 |
+ |
|
761 | 767 |
if(!is.null(list)) { |
762 | 768 |
legend_list = list |
763 | 769 |
} else { |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{adjust_heatmap_list-HeatmapList-method} |
2 | 2 |
\alias{adjust_heatmap_list,HeatmapList-method} |
3 |
+\alias{adjust_heatmap_list} |
|
3 | 4 |
\title{ |
4 | 5 |
Adjust heatmap list |
5 | 6 |
} |
... | ... |
@@ -22,8 +23,8 @@ This function is only for internal use. |
22 | 23 |
\author{ |
23 | 24 |
Zuguang Gu <z.gu@dkfz.de> |
24 | 25 |
} |
25 |
-\alias{adjust_heatmap_list} |
|
26 | 26 |
\examples{ |
27 | 27 |
# There is no example |
28 | 28 |
NULL |
29 |
+ |
|
29 | 30 |
} |
30 | 31 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,28 @@ |
1 |
+\name{anno_block} |
|
2 |
+\alias{anno_block} |
|
3 |
+\title{ |
|
4 |
+Block annotation |
|
5 |
+} |
|
6 |
+\description{ |
|
7 |
+Block annotation |
|
8 |
+} |
|
9 |
+\usage{ |
|
10 |
+anno_block(gp = gpar(), labels = NULL, labels_gp = gpar(), labels_rot = ifelse(which == "row", 90, 0), |
|
11 |
+ which = c("column", "row"), width = NULL, height = NULL) |
|
12 |
+} |
|
13 |
+\arguments{ |
|
14 |
+ |
|
15 |
+ \item{gp}{Graphic parameters} |
|
16 |
+ \item{labels}{-labels} |
|
17 |
+ \item{labels_gp}{-labels_gp} |
|
18 |
+ \item{labels_rot}{-labels_rot} |
|
19 |
+ \item{which}{-which} |
|
20 |
+ \item{width}{-width} |
|
21 |
+ \item{height}{-height} |
|
22 |
+ |
|
23 |
+} |
|
24 |
+\examples{ |
|
25 |
+# There is no example |
|
26 |
+NULL |
|
27 |
+ |
|
28 |
+} |
... | ... |
@@ -22,7 +22,7 @@ anno_horizon(x, which = c("column", "row"), |
22 | 22 |
\item{n_slice}{Number of slices on y-axis.} |
23 | 23 |
\item{slice_size}{Height of the slice. If the value is not \code{NULL}, \code{n_slice} will be recalculated. } |
24 | 24 |
\item{negative_from_top}{Whether the areas for negative values start from the top or the bottom of the plotting region?} |
25 |
- \item{normalize}{Whether normalize \code{x} to let data range of each observation in (0, 1)?} |
|
25 |
+ \item{normalize}{Whether normalize \code{x} by max(abs(x)).} |
|
26 | 26 |
\item{gap}{Gap size of neighbouring horizon chart.} |
27 | 27 |
\item{axis}{Whether to add axis?} |
28 | 28 |
\item{axis_param}{parameters for controlling axis. See \code{\link{default_axis_param}} for all possible settings and default parameters.} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{annotation_legend_size-HeatmapList-method} |
2 | 2 |
\alias{annotation_legend_size,HeatmapList-method} |
3 |
+\alias{annotation_legend_size} |
|
3 | 4 |
\title{ |
4 | 5 |
Size of the annotation legend viewport |
5 | 6 |
} |
... | ... |
@@ -28,8 +29,8 @@ A \code{\link[grid]{unit}} object. |
28 | 29 |
\author{ |
29 | 30 |
Zuguang Gu <z.gu@dkfz.de> |
30 | 31 |
} |
31 |
-\alias{annotation_legend_size} |
|
32 | 32 |
\examples{ |
33 | 33 |
# There is no example |
34 | 34 |
NULL |
35 |
+ |
|
35 | 36 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{color_mapping_legend-ColorMapping-method} |
2 | 2 |
\alias{color_mapping_legend,ColorMapping-method} |
3 |
+\alias{color_mapping_legend} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw Legend Based on Color Mapping |
5 | 6 |
} |
... | ... |
@@ -65,8 +66,8 @@ A \code{\link{Legends-class}} object. |
65 | 66 |
\author{ |
66 | 67 |
Zuguang Gu <z.gu@dkfz.de> |
67 | 68 |
} |
68 |
-\alias{color_mapping_legend} |
|
69 | 69 |
\examples{ |
70 | 70 |
# There is no example |
71 | 71 |
NULL |
72 |
+ |
|
72 | 73 |
} |
... | ... |
@@ -31,6 +31,9 @@ densityHeatmap(data, |
31 | 31 |
column_names_rot = 90, |
32 | 32 |
|
33 | 33 |
cluster_columns = FALSE, |
34 |
+ clustering_distance_columns = "ks", |
|
35 |
+ clustering_method_columns = "complete", |
|
36 |
+ |
|
34 | 37 |
...) |
35 | 38 |
} |
36 | 39 |
\arguments{ |
... | ... |
@@ -54,7 +57,8 @@ densityHeatmap(data, |
54 | 57 |
\item{column_names_max_height}{Pass to \code{\link{Heatmap}}.} |
55 | 58 |
\item{column_names_gp}{Pass to \code{\link{Heatmap}}.} |
56 | 59 |
\item{column_names_rot}{Pass to \code{\link{Heatmap}}.} |
57 |
- \item{cluster_columns}{Whether cluster columns (here clustered by density values)? Normally we don't cluster columns.} |
|
60 |
+ \item{cluster_columns}{Whether cluster columns (here clustered by density values)? Normally we don't cluster columns. - clustering_distance_columns} |
|
61 |
+ \item{clustering_method_columns}{-clustering_method_columns} |
|
58 | 62 |
\item{...}{pass to \code{\link{Heatmap}}.} |
59 | 63 |
|
60 | 64 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_annotation-Heatmap-method} |
2 | 2 |
\alias{draw_annotation,Heatmap-method} |
3 |
+\alias{draw_annotation} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw Heatmap Annotations on the Heatmap |
5 | 6 |
} |
... | ... |
@@ -30,8 +31,8 @@ This function returns no value. |
30 | 31 |
\author{ |
31 | 32 |
Zuguang Gu <z.gu@dkfz.de> |
32 | 33 |
} |
33 |
-\alias{draw_annotation} |
|
34 | 34 |
\examples{ |
35 | 35 |
# There is no example |
36 | 36 |
NULL |
37 |
+ |
|
37 | 38 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_annotation_legend-HeatmapList-method} |
2 | 2 |
\alias{draw_annotation_legend,HeatmapList-method} |
3 |
+\alias{draw_annotation_legend} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw legends for all column annotations |
5 | 6 |
} |
... | ... |
@@ -27,8 +28,8 @@ This function returns no value. |
27 | 28 |
\author{ |
28 | 29 |
Zuguang Gu <z.gu@dkfz.de> |
29 | 30 |
} |
30 |
-\alias{draw_annotation_legend} |
|
31 | 31 |
\examples{ |
32 | 32 |
# There is no example |
33 | 33 |
NULL |
34 |
+ |
|
34 | 35 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_dend-Heatmap-method} |
2 | 2 |
\alias{draw_dend,Heatmap-method} |
3 |
+\alias{draw_dend} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw Heatmap Dendrograms |
5 | 6 |
} |
... | ... |
@@ -33,8 +34,8 @@ This function returns no value. |
33 | 34 |
\author{ |
34 | 35 |
Zuguang Gu <z.gu@dkfz.de> |
35 | 36 |
} |
36 |
-\alias{draw_dend} |
|
37 | 37 |
\examples{ |
38 | 38 |
# There is no example |
39 | 39 |
NULL |
40 |
+ |
|
40 | 41 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_dimnames-Heatmap-method} |
2 | 2 |
\alias{draw_dimnames,Heatmap-method} |
3 |
+\alias{draw_dimnames} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw row names or column names |
5 | 6 |
} |
... | ... |
@@ -29,8 +30,8 @@ This function returns no value. |
29 | 30 |
\author{ |
30 | 31 |
Zuguang Gu <z.gu@dkfz.de> |
31 | 32 |
} |
32 |
-\alias{draw_dimnames} |
|
33 | 33 |
\examples{ |
34 | 34 |
# There is no example |
35 | 35 |
NULL |
36 |
+ |
|
36 | 37 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_heatmap_body-Heatmap-method} |
2 | 2 |
\alias{draw_heatmap_body,Heatmap-method} |
3 |
+\alias{draw_heatmap_body} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw the Heatmap Body |
5 | 6 |
} |
... | ... |
@@ -28,8 +29,8 @@ This function returns no value. |
28 | 29 |
\author{ |
29 | 30 |
Zuguang Gu <z.gu@dkfz.de> |
30 | 31 |
} |
31 |
-\alias{draw_heatmap_body} |
|
32 | 32 |
\examples{ |
33 | 33 |
# There is no example |
34 | 34 |
NULL |
35 |
+ |
|
35 | 36 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_heatmap_legend-HeatmapList-method} |
2 | 2 |
\alias{draw_heatmap_legend,HeatmapList-method} |
3 |
+\alias{draw_heatmap_legend} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw legends for all heatmaps |
5 | 6 |
} |
... | ... |
@@ -27,8 +28,8 @@ This function returns no value. |
27 | 28 |
\author{ |
28 | 29 |
Zuguang Gu <z.gu@dkfz.de> |
29 | 30 |
} |
30 |
-\alias{draw_heatmap_legend} |
|
31 | 31 |
\examples{ |
32 | 32 |
# There is no example |
33 | 33 |
NULL |
34 |
+ |
|
34 | 35 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{draw_heatmap_list-HeatmapList-method} |
2 | 2 |
\alias{draw_heatmap_list,HeatmapList-method} |
3 |
+\alias{draw_heatmap_list} |
|
3 | 4 |
\title{ |
4 | 5 |
Draw the list of heatmaps |
5 | 6 |
} |
... | ... |
@@ -25,8 +26,8 @@ This function returns no value. |
25 | 26 |
\author{ |
26 | 27 |
Zuguang Gu <z.gu@dkfz.de> |
27 | 28 |
} |
28 |
-\alias{draw_heatmap_list} |
|
29 | 29 |
\examples{ |
30 | 30 |
# There is no example |
31 | 31 |
NULL |
32 |
+ |
|
32 | 33 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{get_color_mapping_list-HeatmapAnnotation-method} |
2 | 2 |
\alias{get_color_mapping_list,HeatmapAnnotation-method} |
3 |
+\alias{get_color_mapping_list} |
|
3 | 4 |
\title{ |
4 | 5 |
Get a List of ColorMapping objects |
5 | 6 |
} |
... | ... |
@@ -25,8 +26,8 @@ A list of \code{\link{ColorMapping-class}} objects or an empty list. |
25 | 26 |
\author{ |
26 | 27 |
Zuguang Gu <z.gu@dkfz.de> |
27 | 28 |
} |
28 |
-\alias{get_color_mapping_list} |
|
29 | 29 |
\examples{ |
30 | 30 |
# There is no example |
31 | 31 |
NULL |
32 |
+ |
|
32 | 33 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{get_legend_param_list-HeatmapAnnotation-method} |
2 | 2 |
\alias{get_legend_param_list,HeatmapAnnotation-method} |
3 |
+\alias{get_legend_param_list} |
|
3 | 4 |
\title{ |
4 | 5 |
Get a List of Annotation Legend Parameters |
5 | 6 |
} |
... | ... |
@@ -25,8 +26,8 @@ A list. |
25 | 26 |
\author{ |
26 | 27 |
Zuguang Gu <z.gu@dkfz.de> |
27 | 28 |
} |
28 |
-\alias{get_legend_param_list} |
|
29 | 29 |
\examples{ |
30 | 30 |
# There is no example |
31 | 31 |
NULL |
32 |
+ |
|
32 | 33 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{heatmap_legend_size-HeatmapList-method} |
2 | 2 |
\alias{heatmap_legend_size,HeatmapList-method} |
3 |
+\alias{heatmap_legend_size} |
|
3 | 4 |
\title{ |
4 | 5 |
Size of the heatmap legend viewport |
5 | 6 |
} |
... | ... |
@@ -25,8 +26,8 @@ A \code{\link[grid]{unit}} object. |
25 | 26 |
\author{ |
26 | 27 |
Zuguang Gu <z.gu@dkfz.de> |
27 | 28 |
} |
28 |
-\alias{heatmap_legend_size} |
|
29 | 29 |
\examples{ |
30 | 30 |
# There is no example |
31 | 31 |
NULL |
32 |
+ |
|
32 | 33 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{make_column_cluster-Heatmap-method} |
2 | 2 |
\alias{make_column_cluster,Heatmap-method} |
3 |
+\alias{make_column_cluster} |
|
3 | 4 |
\title{ |
4 | 5 |
Make Cluster on Columns |
5 | 6 |
} |
... | ... |
@@ -28,8 +29,8 @@ A \code{\link{Heatmap-class}} object. |
28 | 29 |
\author{ |
29 | 30 |
Zuguang Gu <z.gu@dkfz.de> |
30 | 31 |
} |
31 |
-\alias{make_column_cluster} |
|
32 | 32 |
\examples{ |
33 | 33 |
# There is no example |
34 | 34 |
NULL |
35 |
+ |
|
35 | 36 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{make_row_cluster-Heatmap-method} |
2 | 2 |
\alias{make_row_cluster,Heatmap-method} |
3 |
+\alias{make_row_cluster} |
|
3 | 4 |
\title{ |
4 | 5 |
Make Cluster on Rows |
5 | 6 |
} |
... | ... |
@@ -27,8 +28,8 @@ A \code{\link{Heatmap-class}} object. |
27 | 28 |
\author{ |
28 | 29 |
Zuguang Gu <z.gu@dkfz.de> |
29 | 30 |
} |
30 |
-\alias{make_row_cluster} |
|
31 | 31 |
\examples{ |
32 | 32 |
# There is no example |
33 | 33 |
NULL |
34 |
+ |
|
34 | 35 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{map_to_colors-ColorMapping-method} |
2 | 2 |
\alias{map_to_colors,ColorMapping-method} |
3 |
+\alias{map_to_colors} |
|
3 | 4 |
\title{ |
4 | 5 |
Map Values to Colors |
5 | 6 |
} |
... | ... |
@@ -34,4 +35,3 @@ col_fun = colorRamp2(c(0, 1), c("white", "red")) |
34 | 35 |
cm = ColorMapping(col_fun = col_fun) |
35 | 36 |
map_to_colors(cm, runif(10)) |
36 | 37 |
} |
37 |
-\alias{map_to_colors} |
... | ... |
@@ -13,11 +13,10 @@ oncoPrint(mat, |
13 | 13 |
alter_fun_is_vectorized = NULL, |
14 | 14 |
col, |
15 | 15 |
|
16 |
- top_annotation = HeatmapAnnotation(column_barplot = anno_oncoprint_barplot(), |
|
17 |
- show_annotation_name = FALSE), |
|
16 |
+ top_annotation = HeatmapAnnotation(column_barplot = anno_oncoprint_barplot()), |
|
18 | 17 |
right_annotation = rowAnnotation(row_barplot = anno_oncoprint_barplot( |
19 |
- axis_param = list(side = "top", labels_rot = 0)), |
|
20 |
- show_annotation_name = FALSE), |
|
18 |
+ axis_param = list(side = "top", labels_rot = 0))), |
|
19 |
+ bottom_annotation = NULL, |
|
21 | 20 |
|
22 | 21 |
show_pct = TRUE, |
23 | 22 |
pct_gp = gpar(fontsize = 10), |
... | ... |
@@ -76,4 +75,5 @@ Zuguang Gu <z.gu@dkfz.de> |
76 | 75 |
\examples{ |
77 | 76 |
# There is no example |
78 | 77 |
NULL |
78 |
+ |
|
79 | 79 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{prepare-Heatmap-method} |
2 | 2 |
\alias{prepare,Heatmap-method} |
3 |
+\alias{prepare} |
|
3 | 4 |
\title{ |
4 | 5 |
Prepare the Heatmap |
5 | 6 |
} |
... | ... |
@@ -33,8 +34,8 @@ The \code{\link{Heatmap-class}} object. |
33 | 34 |
\author{ |
34 | 35 |
Zuguang Gu <z.gu@dkfz.de> |
35 | 36 |
} |
36 |
-\alias{prepare} |
|
37 | 37 |
\examples{ |
38 | 38 |
# There is no example |
39 | 39 |
NULL |
40 |
+ |
|
40 | 41 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{resize-HeatmapAnnotation-method} |
2 | 2 |
\alias{resize,HeatmapAnnotation-method} |
3 |
+\alias{resize} |
|
3 | 4 |
\title{ |
4 | 5 |
Resize the Width or Height of Heatmap Annotations |
5 | 6 |
} |
... | ... |
@@ -40,8 +41,8 @@ the basic rule is: |
40 | 41 |
and \code{anno_simple_size} is disabled. |
41 | 42 |
6. If \code{simple_anno_size_adjust} is \code{FALSE}, the size of the simple annotations will not change. |
42 | 43 |
} |
43 |
-\alias{resize} |
|
44 | 44 |
\examples{ |
45 | 45 |
# There is no example |
46 | 46 |
NULL |
47 |
+ |
|
47 | 48 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{set_component_height-Heatmap-method} |
2 | 2 |
\alias{set_component_height,Heatmap-method} |
3 |
+\alias{set_component_height} |
|
3 | 4 |
\title{ |
4 | 5 |
Set Height of Heatmap Component |
5 | 6 |
} |
... | ... |
@@ -29,8 +30,8 @@ The \code{\link{Heatmap-class}} object. |
29 | 30 |
\author{ |
30 | 31 |
Zuguang Gu <z.gu@dkfz.de> |
31 | 32 |
} |
32 |
-\alias{set_component_height} |
|
33 | 33 |
\examples{ |
34 | 34 |
# There is no example |
35 | 35 |
NULL |
36 |
+ |
|
36 | 37 |
} |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
\name{set_component_width-Heatmap-method} |
2 | 2 |
\alias{set_component_width,Heatmap-method} |
3 |
+\alias{set_component_width} |
|
3 | 4 |
\title{ |
4 | 5 |
Set Width of Heatmap Component |
5 | 6 |
} |
... | ... |
@@ -28,8 +29,8 @@ The \code{\link{Heatmap-class}} object. |
28 | 29 |
\author{ |
29 | 30 |
Zuguang Gu <z.gu@dkfz.de> |
30 | 31 |
} |
31 |
-\alias{set_component_width} |
|
32 | 32 |
\examples{ |
33 | 33 |
# There is no example |
34 | 34 |
NULL |
35 |
+ |
|
35 | 36 |
} |