sort colors by similarity

sort_color(colors, root = NULL, rev = FALSE, plot = FALSE)

Arguments

colors

a vector of colors in hex format

root

sort from root color

rev

sort order by similarity(default) or difference

plot

preview color order

Value

a vector of sorted colors