| selectPosition {ComplexHeatmap} | R Documentation |
Select a position in the heatmap
selectPosition(ht_list, pos = NULL, mark = TRUE, verbose = TRUE,
ht_pos = NULL)
ht_list |
A |
mark |
Whether mark the selected position as a point. |
pos |
If the value is |
verbose |
Whether to print messages. |
ht_pos |
A value returned by |
A DataFrame object with row index and column index corresponding to the selected position.
Zuguang Gu <z.gu@dkfz.de>
The code for this shiny app is at https://github.com/jokergoo/ComplexHeatmap/blob/master/inst/app/app.R
if(interactive()) {
m = matrix(rnorm(100), 10)
rownames(m) = 1:10
colnames(m) = 1:10
ht = Heatmap(m)
ht = draw(ht)
selectPosition(ht)
}