makeInteractiveComplexHeatmap | R Documentation |
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)
input |
Passed from the Shiny server function. |
output |
Passed from the Shiny server function. |
session |
Passed from the Shiny server function. |
ht_list |
A |
heatmap_id |
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 |
click_action |
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 |
hover_action |
Additional actions at the server side when receiving a hover event on the UI. |
dblclick_action |
Additional actions at the server side when receiving a dblclick event on the UI. |
brush_action |
Additional actions at the server side when receiving a brush event on the UI. |
res |
Resolution of the plot, pass to |
show_cell_fun |
Whether show graphics made by |
show_layer_fun |
Whether show graphics made by |
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.