watlington: Retrieve one or more of Watlington's 16 color specifications...

View source: R/watlington.R

watlingtonR Documentation

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

Description

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

Usage

watlington(index, ...)

Arguments

index

a vector of indices to retrieve if missing then all 16 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 WADLUT

Examples

plot(1:16, pch = 19, col = watlington(1:16))

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