kelly: Retrieve one or more of Kelly's 22 color specifications as...

View source: R/kelly.R

kellyR Documentation

Retrieve one or more of Kelly's 22 color specifications as hex, rgb triplets or a data.frame

Description

Retrieve one or more of Kelly's 22 color specifications as hex, rgb triplets or a data.frame

Usage

kelly(index, ...)

Arguments

index

a vector of indices to retrieve if missing then all 22 are returned Watlingtons colors are named, so it is possible to specify by name or position index

...

further arguments for get_lut

Value

color values in the form specified

hex

a character vector of hexidecimal strings, this is the default

rgb

a 3-column matrix of red, green and blue values

data.frame

a 4 column data frame, see KELLYLUT

Examples

plot(2:22, pch = 19, col = kelly(2:22))

btupper/catecolors documentation built on Sept. 22, 2023, 12:40 p.m.