genPalettes: Generate distinct color palettes

View source: R/color_functions.R

genPalettesR Documentation

Generate distinct color palettes

Description

Generate distinct color palettes

Usage

genPalettes(
  n = 1,
  length_each = 3,
  dist = 0.75,
  saturation = c(0.5, 0.7),
  lightness = c(0.5, 0.7),
  cvd = "protan",
  cvd_severity = 0.2,
  seed = 123,
  ...
)

Arguments

n

Number of palettes

length_each

Length of each palette (either a single digit or a vector of length n)

dist

Distance between palettes

...

Examples

genPalettes(n = 10) %L>% showColors()

AlexanderKirchmair/datamisc documentation built on June 13, 2025, 5:26 a.m.