named_palette | R Documentation |
Returns the palette named by names. This is useful to pick only a few specific colors from a larger palette.
named_palette(palette, names, color_order = NULL)
palette |
Colors |
names |
Names |
color_order |
If specified, will reorder palette by this ordering vector |
A named palette. If the palette is longer than names, will only use the first n entries. If names is longer than palette, will recycle colors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.