align_reorder {ggalign} | R Documentation |
Reorders layout observations based on weights or summary statistics.
align_reorder(
fun = rowMeans,
...,
strict = TRUE,
decreasing = FALSE,
data = NULL,
set_context = FALSE,
name = NULL
)
fun |
A summary function. It should take a data and return the weights for the layout observations. |
... |
Additional arguments passed to |
strict |
A boolean value indicates whether the order should be strict.
If previous groups has been established, and strict is |
decreasing |
A boolean value. Should the sort order be increasing or decreasing? |
data |
A matrix, a data frame, or even a simple vector that will be
converted into a one-column matrix. If the It is important to note that all
|
set_context |
A single boolean value indicates whether to set the active
context to current plot. If |
name |
A string of the plot name. Used to switch the active context in
|
A new Align
object.
ggheatmap(matrix(rnorm(81), nrow = 9)) +
hmanno("l") +
align_reorder()