wa_pal | R Documentation |
Generate palette
objects from the wacolors
list
wa_pal( palette, n, which = NULL, type = c("discrete", "continuous"), reverse = FALSE )
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 |
|
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.
wa_pal("rainier") wa_pal(wacolors$rainier) wa_pal("sound_sunset", 20, "continuous") wa_pal("washington_pass", reverse=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.