col2hex: Convert color names to hex RGB strings

Description Usage Arguments Value Author(s) See Also Examples

Description

Convert color names to hex RGB strings

Usage

1
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

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

Example output

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

[1] "#FF0000" "#FFFF00" "#D3D3D3"

gplots documentation built on May 2, 2019, 5:50 p.m.