glasbey: Retrieve one or more of Glasbey et al 256 color...

View source: R/glasbey.R

glasbeyR Documentation

Retrieve one or more of Glasbey et al 256 color specifications as hex, rgb triplets or a data.frame

Description

Retrieve one or more of Glasbey et al 256 color specifications as hex, rgb triplets or a data.frame

Usage

glasbey(index, ...)

Arguments

index

a vector of indices to retrieve if missing then all 256 are returned

...

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 GLASBEYLUT

Examples

plot(1:10, pch = 19, col = glasbey(11:20))

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