InteractiveComplexHeatmapOutput.RdUI for the interactive complex heatmaps
InteractiveComplexHeatmapOutput(heatmap_id = NULL, title1 = "Original heatmap", title2 = "Selected sub-heatmap", title3 = if(output_ui_float) NULL else "Output", width1 = ifelse(layout == "1|(2-3)", 800, 450), height1 = ifelse(layout == "1-(2|3)", 700, 350), width2 = 400, height2 = 350, width3 = NULL, layout = ifelse("brush" %in% response, "(1-2)|3", "1-3"), compact = FALSE, action = "click", cursor = TRUE, response = c(action, "brush"), brush_opt = list(stroke = "#f00", opacity = 0.6), output_ui = default_output_ui(heatmap_id), output_ui_float = FALSE, containment = FALSE, internal = FALSE, ...)
| heatmap_id | ID of the plot. If it is not specified, an internal ID is assigned. |
|---|---|
| title1 | Title of the original heatmap. |
| title2 | Title of the sub-heatmap. |
| title3 | Title of the output. |
| width1 | Width of the original heatmap. |
| height1 | Height of the original heatmap. |
| width2 | Width of the sub-heatmap. |
| height2 | Height of the sub-heatmap. |
| width3 | Width of the output div. |
| layout | One of |
| compact | If the value is |
| action | Which action for selecting single cells on the heatmap? Value should be |
| 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 |
| brush_opt | A list of parameters passed to |
| output_ui | A |
| output_ui_float | Whether the UI defined by |
| containment | Whether the resizing is restricted in a certain parent div? Value can be |
| internal | Internally used. |
| ... | Pass to the UI container which is wrapped by |
This function generates HTML fragment for the interactive UI. See the example in makeInteractiveComplexHeatmap page.
layout is defined as follows (1 for the original heatmap, 2 for the selected sub-heatmap and 3 is for the output:
"(1-2)|3": Heatmap and sub-heatmap are in a same row, and output is in a second row. This is the default layout.
"1|(2-3)": Heatmap is in a single row, while sub-heatmap and output are in a second row.
"1-2-3": All three components are in a same row.
"1|2|3": Each component is in a single row.
"1-(2|3)": Being different from the other four layouts, this is a two-column layout. Heatmap is in a sigle column. Sub-heatmap and output are vertically aligned and the two are in the second column.
The hover event is implemented with https://github.com/websanova/mousestop .
A UI that can be used in Shiny.
# There is no example NULL#> NULL