Learn R Programming

unikn (version 0.8.0)

all_colors: Provide all unikn colors and base R colors

Description

all_colors combines the unikn color gradients with the 657 named colors provided by colors of grDevices.

Usage

all_colors(distinct = TRUE)

Value

A named vector of color values (of type character).

Arguments

distinct

Boolean: Return only colors with unique values and names? Default: distinct = TRUE (i.e., remove duplicate values and names).

Details

The color values returned (as a named character vector) are either HEX/HTML codes or base R color names.

The distinct option removes colors with duplicate color values or names.