heatmap_annotations: Heatmap annotation automation

View source: R/characterization.R

heatmap_annotationsR Documentation

Heatmap annotation automation

Description

Generates stacked HeatmapAnnotations from a list of annotations.

Usage

heatmap_annotations(
  annotations,
  factor_color_sets = list(RColorBrewer::brewer.pal(8, "Dark2"),
    RColorBrewer::brewer.pal(9, "Set1"), RColorBrewer::brewer.pal(9, "Pastel1"),
    pals::watlington(n = 16), pals::kelly(n = 22)),
  ...
)

Arguments

annotations

list of variables

factor_color_sets

list of color sets (not in order)

...

passed onto HeatmapAnnotation

Details

Characters and factors are assigned colors from categorical palettes according to the number of categories. NOTE: if a palette does not have enough colors, the colors are assigned from the next palette in the list.

Value

'HeatmapList-class'


vittoriofortino84/COPS documentation built on Jan. 28, 2025, 3:16 p.m.