palette_pequod: Pequod palette

View source: R/palettes.R

palette_pequodR Documentation

Pequod palette

Description

Returns a character vector of hex colours from a named Pequod palette. Supports both discrete selection (first 'n' colours) and continuous interpolation between the palette's stops.

Usage

palette_pequod(
  name = "log",
  n = NULL,
  type = c("discrete", "continuous"),
  reverse = FALSE,
  direction = 1
)

Arguments

name

Palette name; see Details.

n

Number of colours to return. Defaults to the full palette length. For 'type = "continuous"', any positive integer.

type

'"discrete"' takes the first 'n' colours (errors if 'n' exceeds the palette length). '"continuous"' interpolates 'n' colours across the full palette with [grDevices::colorRampPalette()].

reverse

If 'TRUE', reverse the returned palette.

direction

'+1' (default) or '-1' to flip the palette.

Details

Available palettes:

'"log"'

The full 12-step Log base scale.

'"log-warm"'

Log 50–400 (six warm steps).

'"log-cool"'

Log 500–950 (six cool steps).

'"crew"'

The eight crew accents, light variants.

'"crew-dark"'

The eight crew accents, dark variants.

'"syntax"'

Crew accents in syntax-role order — keyword, string, number, comment, function, type, constant, variable.

Value

An unnamed character vector of hex codes of length 'n'.

Examples

palette_pequod("log")
palette_pequod("crew", n = 5)
palette_pequod("log-cool", n = 100, type = "continuous")

pequod documentation built on May 1, 2026, 5:06 p.m.