View source: R/add_annotation.R
get_annotation_pos | R Documentation |
Calculate positions of annotations for heatmap.
get_annotation_pos(
annot_side = TRUE,
annot_names,
annot_size,
annot_dist,
annot_gap,
data_size
)
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. |
Numeric vector of annotation cell positions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.