Skip to contents

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