rgbname: Return the hexadecimal color string for a named color.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rgbname.R

Description

Converts a named color to its hexadecimal representation.

Usage

1
rgbname(colorname)

Arguments

colorname

A named color. See colors() for the complete list.

Value

A hexadecimal color string.

Author(s)

Sarah Goslee

See Also

colors, col2rgb, rgbv

Examples

1
2
  rgbname("white")
  rgbname("lightsalmon")

phiala/giscolor documentation built on Jan. 28, 2020, 3:35 a.m.