Get the position of hovered point on the heatmap image
Source:R/shiny-server.R
getPositionFromHover.RdGet the position of hovered point on the heatmap image
Arguments
- hover
The input hover object. Assume
heatmap_hoveris the ID set to argumenthoverinshiny::plotOutput(), then the value here isinput$heatmap_hover.- ratio
The relative resolution. The value should the ratio between
resset inmakeInteractiveComplexHeatmap()and 72 (res/72).
Value
A grid::unit object of length two which are the coordinates of the hover points.