Get the position of the brushed area on the heatmap image
Source:R/shiny-server.R
getPositionFromBrush.RdGet the position of the brushed area on the heatmap image
Arguments
- brush
The input brush object. Assume
heatmap_brushis the ID set to argumentbrushinshiny::plotOutput(), then the value here isinput$heatmap_brush.- ratio
The relative resolution. The value should the ratio between
resset inmakeInteractiveComplexHeatmap()and 72 (res/72).