Description Usage Arguments Details Examples
A function that is mainly intended for internal package use. Gets a pallete by name from a list. Uses a boolean condition determining whether to reverse the order or not, and additional arguments to pass on to colorRampPallete() (such as an alpha value).
1 |
palette |
Character name of palette in wwfc_palettes |
reverse |
logical indicating whether the palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
Returns another function, which will interpolate the palette colors for a certain number of levels, making it possible to create shades between our original colours.
The complete list of options is "wooly_bully" (the default) & "sir_jack". Use e.g. view_palette("wooly_bully") to see the 5 core colours that make up a palette.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.