Skip to contents

This function selects a specified number of colors from the c4cp color palette.

Usage

select_colors(palette, num_series)

Arguments

palette

A list of color palettes generated by color_palette().

num_series

An integer specifying the number of colors to select.

Value

A character vector of selected color hex codes.

Examples

palettes <- color_palette()
selected <- select_colors(palettes, 10)
plot(x,y, col = selected[1])
#> Error: object 'x' not found