| wa_pal {wacolors} | R Documentation |
Washington State Color Palette Generator
Description
Generate palette objects from the wacolors list
Usage
wa_pal(
palette,
n,
which = NULL,
type = c("discrete", "continuous"),
reverse = FALSE
)
Arguments
palette |
The name of the palette (partial matching supported), or an
actual palette from |
n |
The number of colors in the palette. If this exceeds the actual
number and |
which |
if not |
type |
Either |
reverse |
|
Value
A vector of colors of type palette. Use the plot() function to
plot the palette. If the cli package is installed, printing the palette
to the console will also show its colors.
Examples
wa_pal("rainier")
wa_pal(wacolors$rainier)
wa_pal("sound_sunset", 20, "continuous")
wa_pal("washington_pass", reverse=TRUE)
[Package wacolors version 0.3.1 Index]