Learn R Programming

ggcorrheatmap (version 0.1.2)

get_annotation_pos: 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
)

Value

Numeric vector of annotation cell positions

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.