named_palette: Named color palette

View source: R/plotting.R

named_paletteR 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.


tidytidbits documentation built on March 18, 2022, 6:10 p.m.