View source: R/craft-align-group.R
align_group | R Documentation |
Splits observations into groups, with slice ordering based on group levels.
align_group(group, active = NULL)
group |
A character define the groups of the observations. |
active |
A |
set.seed(1L)
small_mat <- matrix(rnorm(81), nrow = 9)
ggheatmap(small_mat) +
anno_top() +
align_group(sample(letters[1:4], ncol(small_mat), replace = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.