Calculate positions of annotations for heatmap.
get_annotation_pos(
annot_side = TRUE,
annot_names,
annot_size,
annot_dist,
annot_gap,
data_size
)
Numeric vector of annotation cell positions
Logical specifying annotation position. TRUE is left of the heatmap if row annotation, bottom of heatmap if column annotation
Names of the annotations.
Size of annotation cells where 1 is the size of a heatmap cell.
Distance between heatmap and first annotation.
Size of gap between annotations.
Number of rows or columns in the main heatmap (which is symmetric). Used to get starting position of annotations.