Get the position of the brushed area on the heatmap image

getPositionFromBrush(brush, ratio = 1)

Arguments

brush

The input brush object. Assume heatmap_brush is the ID set to argument brush in plotOutput, then the value here is input$heatmap_brush.

ratio

The relative resolution. The value should the ratio between res set in makeInteractiveComplexHeatmap and 72 (res/72).

Value

A list of length two. The two elements correspons to the coordinates of the two diagonal points.

Examples

# There is no example
NULL
#> NULL