col2hex: Convert color names to hex RGB strings

View source: R/col2hex.R

col2hexR Documentation

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.

Author(s)

Gregory R. Warnes

See Also

col2rgb, colors, rgb

Examples

col2hex(c("red","yellow","lightgrey"))

gplots documentation built on April 25, 2022, 9:06 a.m.