View source: R/ggparallel_specific_utils.R
optimise_axis_ordering_from_matrix | R Documentation |
Finds an ordering of axes that minimises a pairwise distance metric (usually the number of crossings). Offers brute-force and heuristic approaches.
optimise_axis_ordering_from_matrix(
mx,
method = c("auto", "brute_force", "repetitive_nn_with_2opt"),
return_detailed = FALSE,
verbose = TRUE
)
mx |
A matrix or |
method |
A character string specifying the method. Can be |
return_detailed |
Logical; if |
verbose |
Logical; if |
If return_detailed = FALSE
, returns a character vector of axis
names in the chosen order. Otherwise, returns a list with additional data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.