Description Usage Arguments Details Examples
Subset a HeatmapList object
1 2 | ## S3 method for class 'HeatmapList'
x[i, j]
|
x |
A |
i |
row indices |
j |
column indices |
If the heatmap list is horizontal, i
is the row indices and j
corresponds to heatmap names and single annotation names.
and if the heatlist is vertical, i
corresponds to heatmap/annotation names and j
is the column indices.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ht_list = Heatmap(matrix(rnorm(100), 10), name = "rnorm") +
rowAnnotation(foo = 1:10, bar = anno_points(10:1)) +
Heatmap(matrix(runif(100), 10), name = "runif")
summary(ht_list[1:5, ])
summary(ht_list[1:5, 1])
summary(ht_list[1:5, "rnorm"])
summary(ht_list[1:5, c("rnorm", "foo")])
ht_list = Heatmap(matrix(rnorm(100), 10), name = "rnorm") %v%
columnAnnotation(foo = 1:10, bar = anno_points(10:1)) %v%
Heatmap(matrix(runif(100), 10), name = "runif")
summary(ht_list[, 1:5])
summary(ht_list[1, 1:5])
summary(ht_list["rnorm", 1:5])
summary(ht_list[c("rnorm", "foo"), 1:5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.