Learn R Programming

gplots (version 3.1.3)

col2hex: Convert color names to hex RGB strings

Description

Convert color names to hex RGB strings

Usage

col2hex(cname)

Value

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

Arguments

cname

Color name(s)

Author

Gregory R. Warnes

See Also

Examples

Run this code
col2hex(c("red","yellow","lightgrey"))

Run the code above in your browser using DataLab