Learn R Programming

iheatmapr (version 0.7.1)

iheatmapr_event: Access iheatmapr user input event data in shiny

Description

This function must be called within a reactive shiny context.

Usage

iheatmapr_event(
  object,
  event = c("hover", "click", "relayout"),
  session = shiny::getDefaultReactiveDomain()
)

Arguments

object

Iheatmap-class object

event

The type of plotly event. Currently 'plotly_hover', 'plotly_click', 'plotly_selected', and 'plotly_relayout' are supported.

session

a shiny session object (the default should almost always be used).

Examples

Run this code
if (FALSE) {
shiny::runApp(system.file("examples", "shiny_example", package = "iheatmapr"))
}

Run the code above in your browser using DataLab