optimal_order: Order variables to maximise contrasts

View source: R/colour_distance.R

optimal_orderR Documentation

Order variables to maximise contrasts

Description

Start with variable which has the largest distance between all other variables. Then add the variable with the largest distance to the already selected variables.

Usage

optimal_order(distance, selected = character(0))

Arguments

distance

a square distance matrix

selected

optional vector of preselected variables

Value

a vector variable names


inbo/INBOtheme documentation built on April 6, 2023, 5:09 a.m.