Learn R Programming

palette (version 0.0.2)

palette: Create a palette

Description

A palette is a class for color palettes built on vctrs. It is represented as a character vector of hexadecimal color codes. Named colors (like 'red') are translated to hexadecimal color codes.

Usage

palette(x = character())

validate_palette(x)

is_palette(x)

as_palette(x)

Value

a palette vector

Arguments

x

A character vector of colors

Examples

Run this code
palette(roygbiv)

Run the code above in your browser using DataLab