selectPosition | R Documentation |
Select a position in the heatmap
selectPosition(ht_list = get_last_ht(), pos = NULL, mark = TRUE, verbose = TRUE,
ht_pos = NULL, calibrate = TRUE)
ht_list |
A |
mark |
Whether to mark the selected position as a point. |
pos |
If the value is |
verbose |
Whether to print messages. |
ht_pos |
A value returned by |
calibrate |
Internally used. Mainly works for Rstudio desktop IDE. |
The regions can be selected interactively or selected manually by setting pos
.
A DataFrame
object with row indices and column indices corresponding to the selected position.
if(dev.interactive()) {
m = matrix(rnorm(100), 10)
rownames(m) = 1:10
colnames(m) = 1:10
ht = Heatmap(m)
ht = draw(ht)
selectPosition(ht)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.