A couple of color palettes including our inSileco palette and a couple of other inspired by popular websites.

gpuPalette(id, ncolors)

Arguments

id

either an integer or a character string matching the names of the desired color palette(s). If missing then color palettes available are prompted.

ncolors

An integer giving the number of colors to be returned. If greater than the number of colors included in the selection, then 'grDevices::colorRampPalette() is called to expand the palette. If missing, then the entire palette is returned.

Value

A vector of character strings of the hexadecimal colors values. Note that if several color palette is requested, then the output is a vector with all color palette concatenated.

Examples

showPalette(gpuPalette(c('atom', 'cisl')))
showPalette(gpuPalette('cisl', 100))