gplots (version 3.1.1)

col2hex: Convert color names to hex RGB strings

Description

Convert color names to hex RGB strings

Usage

col2hex(cname)

Arguments

cname

Color name(s)

Value

Character vector giving the hex color code translation of the provided color names.

See Also

col2rgb, colors, rgb

Examples

# NOT RUN {
col2hex(c("red","yellow","lightgrey"))
# }