UI for the original heatmap
Arguments
- heatmap_id
ID of the plot.
- title
Title of the original heatmap.
- width
Width of the original heatmap.
- height
Height of the original heatmap.
- action
Which action for selecting single cells on the heatmap? Value should be
click,hoverordblclick.- cursor
When moving mouse on heatmap, whether to show the cursors on the four sides?
- response
Which action needs to be responded on the server side? Value should be in
click/hover/dblclick,brushandbrush-output.brushresponds in two places which are the sub-heatmap and the output components andbrush-outputonly responds in the output component.- brush_opt
A list of parameters passed to
shiny::brushOpts(). Do not set an ID for the brush. An internal brush ID is automatically set.- containment
Whether the resizing is restricted in a certain parent div? Value can be
TRUE/FALSEor a JQuery selector.- internal
Internally used.
Examples
if(interactive()) {
require(shinydashboard)
m = matrix(rnorm(100), 10)
ht = Heatmap(m)
body = dashboardBody(
fluidRow(
box(title = "Original heatmap", width = 4, solidHeader = TRUE, status = "primary",
originalHeatmapOutput("ht")
),
box(title = "Sub-heatmap", width = 4, solidHeader = TRUE, status = "primary",
subHeatmapOutput("ht")
),
box(title = "Output", width = 4, solidHeader = TRUE, status = "primary",
HeatmapInfoOutput("ht")
)
)
)
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
body
)
server = function(input, output, session) {
makeInteractiveComplexHeatmap(input, output, session, ht, "ht")
}
shinyApp(ui, server)
}