Filter and order a set of colors to produce a palette suitable for multicolor plots
Usage
palettize(
x,
grayscale_hicut = 0.8,
start_with = "#16A0AC",
order_by = c("separation", "dissimilarity", "similarity")
)
Arguments
- x
Color vector
- grayscale_hicut
Numeric: exclude colors whose grayscale equivalent is greater than this value
- start_with
Integer or color: For integer, start with this color out of
x
, otherwise find colorx
closer to this color and place it first- order_by
Character: "separation", "dissimilarity", "similarity"