View source: R/plotting_extras.R
annotate_gghm | R Documentation |
Adds row labels on the left or right side of the gghm. Especially useful
when there are too many rowv
, but you'd still like to highlight certain
variables in the heatmap.
annotate_gghm(
gghm,
annot_labels,
side = "left",
annot_size = 2.5,
add_margin = 0
)
gghm |
An ggplot object of class ggheatmap. |
annot_labels |
A vector of labels that you'd like to annotate. Must have
been passed as |
side |
Either 'left' or 'right' of the heatmap |
annot_size |
Size of annotation text |
add_margin |
Whether to add some margin to make extra space for the annotations if they're overlapping other elements. Margin unit is mm. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.