This function setups tooltip options for heatmap components of iheatmapr complex heatmaps.
Usage
setup_tooltip_options(
row = TRUE,
col = TRUE,
value = TRUE,
prepend_row = "Row: ",
prepend_col = "Col: ",
prepend_value = "Value: "
)
Value
a HeatmapTooltipOptions object which stores these options and can be passed to 'tooltip' argument to main_heatmap and other functions.
Examples
mat <- matrix(rnorm(20), ncol = 5, nrow = 4)
hm1 <- main_heatmap(mat,
tooltip = setup_tooltip_options(row = FALSE, col = FALSE,
prepend_value = "Value is "))
# Print heatmap if interactive session
if (interactive()) hm1