expand_named_palette: Expanded Color Palette with Names

View source: R/expand_named_palette.R

expand_named_paletteR Documentation

Expanded Color Palette with Names

Description

Give a vector or a named vector of rgb hex colors, and this will expand them out adding alpha values, and appending 1, 2, 3, etc, to the names. If there are no names, then they will be assigned names from the alphabet.

Usage

expand_named_palette(pal, return_list = TRUE)

Arguments

pal

A (named) vector with colors

return_list

Whether to return the values as a list (TRUE, default) or a named vector (FALSE).


jeffkimbrel/jakR documentation built on April 6, 2024, 8:48 p.m.