| palette_pequod | R Documentation |
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.
palette_pequod(
name = "log",
n = NULL,
type = c("discrete", "continuous"),
reverse = FALSE,
direction = 1
)
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. |
Available palettes:
The full 12-step Log base scale.
Log 50–400 (six warm steps).
Log 500–950 (six cool steps).
The eight crew accents, light variants.
The eight crew accents, dark variants.
Crew accents in syntax-role order — keyword, string, number, comment, function, type, constant, variable.
An unnamed character vector of hex codes of length 'n'.
palette_pequod("log")
palette_pequod("crew", n = 5)
palette_pequod("log-cool", n = 100, type = "continuous")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.