| build_heatmap_annotation | R Documentation |
Build HeatmapAnnotation with safe parameter merge
build_heatmap_annotation(
annotations,
which,
show_annotation_name = TRUE,
annotation_name_side = NULL,
border = NULL,
params = NULL
)
annotations |
Named list of annotation components (for example, |
which |
Annotation direction ( |
show_annotation_name |
Whether to show annotation names. |
annotation_name_side |
Side for annotation names. |
border |
Border flag passed to ComplexHeatmap::HeatmapAnnotation. |
params |
Additional user parameters; duplicated keys are ignored if already set explicitly. |
A ComplexHeatmap::HeatmapAnnotation object.
anno <- list(
group = ComplexHeatmap::anno_simple(
x = c("A", "B", "A"),
col = c(A = "#1b9e77", B = "#d95f02"),
which = "column"
)
)
ha <- build_heatmap_annotation(
annotations = anno,
which = "column",
show_annotation_name = TRUE,
annotation_name_side = "left",
params = list(gap = grid::unit(1, "mm"))
)
ha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.