named_palette: Named color palette

Description Usage Arguments Value

View source: R/plotting.R

Description

Returns the palette named by names. This is useful to pick only a few specific colors from a larger palette.

Usage

1
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 8, 2021, 5:07 p.m.