named_palette {tidytidbits} | R Documentation |
Named color palette
Description
Returns the palette named by names. This is useful to pick only a few specific colors from a larger palette.
Usage
named_palette(palette, names, color_order = NULL)
Arguments
palette |
Colors |
names |
Names |
color_order |
If specified, will reorder palette by this ordering vector |
Value
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.
[Package tidytidbits version 0.3.2 Index]