Skip to contents

Normalize a heatmap border flag, optional colour override, and line width into values accepted by `ComplexHeatmap::Heatmap` and `ComplexHeatmap::Legend`.

Usage

heatmap_border_spec(border = NULL, palcolor = "black", size = 1)

heatmap_border_enabled(border)

heatmap_border_color(border, palcolor = "black")

heatmap_border_size_value(size)

heatmap_border_gp(border, color, size = 1)

heatmap_legend_border(border, color)

Arguments

border

`NULL`, a logical border flag, or a non-empty colour string.

palcolor

Fallback border colour when `border` is not a colour string.

size

Border line width. Invalid or negative values use `1`.

color

Fallback border colour used by the `gp` and legend helpers.

Value

A list with `enabled`, `color`, `size`, `gp`, and `legend_border`.