Get the position of clicked point on the heatmap image
Source:R/shiny-server.R
getPositionFromClick.RdGet the position of clicked point on the heatmap image
Arguments
- click
The input click object. Assume
heatmap_clickis the ID set to argumentclickinshiny::plotOutput(), then the value here isinput$heatmap_click.- ratio
The relative resolution. The value should the ratio between
resset inmakeInteractiveComplexHeatmapand 72 (res/72).
Value
A grid::unit object of length two which are the coordinates of the clicked points.