getPositionFromBrush {InteractiveComplexHeatmap} | R Documentation

## Get the position of the brushed area on the heatmap image

### Description

Get the position of the brushed area on the heatmap image

### Usage

    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.

### See Also

`getPositionFromClick`, `getPositionFromHover`, `getPositionFromDblclick`.

### Examples

    # There is no example
    NULL

[Package InteractiveComplexHeatmap version 1.0.0 Index]