palettize: Palettize colors

View source: R/colorOps.R

palettizeR Documentation

Palettize colors

Description

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 color x closer to this color and place it first

order_by

Character: "separation", "dissimilarity", "similarity"

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.