Description Usage Arguments Details Value Author(s) Examples
Select an area in the heatmap
1 2 |
ht_list |
A |
mark |
Whether mark the selected area as a rectangle. |
pos1 |
If the value is |
pos2 |
Another point as |
verbose |
Whether to print messages. |
ht_pos |
A value returned by |
The regions can be selected interactively or manually by setting pos1
and pos2
.
A DataFrame
object with row indices and column indices corresponding to the selected region.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | if(interactive()) {
m = matrix(rnorm(100), 10)
rownames(m) = 1:10
colnames(m) = 1:10
ht = Heatmap(m)
ht = draw(ht)
selectArea(ht)
set.seed(123)
ht = Heatmap(m, row_km = 2, column_km = 2)
ht = draw(ht)
selectArea(ht)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.