makeInteractiveComplexHeatmap.Rd
Process heatmaps on the sever side
makeInteractiveComplexHeatmap(input, output, session, ht_list,
heatmap_id = shiny_env$current_heatmap_id,
click_action = NULL, hover_action = NULL,
dblclick_action = NULL, brush_action = NULL, res = 72,
show_cell_fun = TRUE, show_layer_fun = TRUE)
Passed from the Shiny server function.
Passed from the Shiny server function.
Passed from the Shiny server function.
A Heatmap-class
or a HeatmapList-class
object.
The corresponding heatmap ID from the UI. If there is only one interactive heatmap in the app, this argument does not need to be specified and it will use the current one used in InteractiveComplexHeatmapOutput
.
Additional actions on the server side when receiving a click event on the UI. This self-defined function should accept two or four arguments. If it is two arguments, they should be df
and output
and if it is four arguments, they should be df
, input
, output
and session
.
Additional actions at the server side when receiving a hover event on the UI.
Additional actions at the server side when receiving a dblclick event on the UI.
Additional actions at the server side when receiving a brush event on the UI.
Resolution of the plot, pass to renderPlot
.
Whether show graphics made by cell_fun
on the main heatmap?
Whether show graphics made by cell_fun
on the main heatmap?
No value is returned.
if(interactive()) {
ht = Heatmap(m)
ht = draw(ht)
ui = fluidPage(
InteractiveComplexHeatmapOutput()
)
server = function(input, output, session) {
makeInteractiveComplexHeatmap(input, output, session, ht)
}
shiny::shinyApp(ui, server)
}