getPositionFromClick {InteractiveComplexHeatmap} | R Documentation

## Get the position of clicked point on the heatmap image

### Description

Get the position of clicked point on the heatmap image

### Usage

    getPositionFromClick(click, ratio = 1)

### Arguments

`click` | The input click object. Assume `heatmap_click` is the ID set to argument `click` in `plotOutput`, then the value here is `input$heatmap_click`.
`ratio` | The relative resolution. The value should the ratio between `res` set in `makeInteractiveComplexHeatmap` and 72 (`res/72`).

### Value

A `unit` object of length two which are the coordinates of the clicked points.

### See Also

`getPositionFromBrush`, `getPositionFromHover`, `getPositionFromDblclick`.

### Examples

    # There is no example
    NULL

[Package InteractiveComplexHeatmap version 1.0.0 Index]