get_annotation_pos: Calculate positions of annotations for heatmap.

View source: R/add_annotation.R

get_annotation_posR Documentation

Calculate positions of annotations for heatmap.

Description

Calculate positions of annotations for heatmap.

Usage

get_annotation_pos(
  annot_side = TRUE,
  annot_names,
  annot_size,
  annot_dist,
  annot_gap,
  data_size
)

Arguments

annot_side

Logical specifying annotation position. TRUE is left of the heatmap if row annotation, bottom of heatmap if column annotation

annot_names

Names of the annotations.

annot_size

Size of annotation cells where 1 is the size of a heatmap cell.

annot_dist

Distance between heatmap and first annotation.

annot_gap

Size of gap between annotations.

data_size

Number of rows or columns in the main heatmap (which is symmetric). Used to get starting position of annotations.

Value

Numeric vector of annotation cell positions


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.