A fixed palette of n colors

PCMColorPalette(
  n,
  names,
  colors = structure(hcl(h = seq(15, 375, length = n + 1), l = 65, c =
    100)[seq_len(n)], names = names)
)

Arguments

n

an integer defining the number of colors in the resulting palette.

names

a character vector of length `n`.

colors

a vector of n values convertible to colors. Default: structure(hcl( h = seq(15, 375, length = n + 1), l = 65, c = 100)[seq_len(n)], names = names)

Value

A vector of character strings which can be used as color specifications by R graphics functions.