PCMColorPalette: A fixed palette of n colors

View source: R/Utilities.R

PCMColorPaletteR Documentation

A fixed palette of n colors

Description

A fixed palette of n colors

Usage

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.


PCMBase documentation built on Nov. 18, 2022, 9:06 a.m.