LSD (version 4.0-0)

convertgrey: Convert R colors to greyscale

Description

Greyscale R built-in colors.

Usage

convertgrey(cols, alpha = NULL)

Arguments

cols

a character vector containing R built-in colors.

alpha

alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).

Value

convertgrey returns a vector containing R built-in colors in hexadecimal representation.

See Also

disco, colorpalette, demotour

Examples

Run this code
# NOT RUN {
convertgrey(c("red","green","blue"))
# }

Run the code above in your browser using DataLab