col2hex: Convert color name to hexidecimal code

col2hexR Documentation

Convert color name to hexidecimal code

Description

Convert color name to hexidecimal code

Usage

col2hex(cname)

Arguments

cname

Character. Name of an HTML color.

Details

Pulled from the gplots package. This version allows for compatibility with older versions of R.

Value

A hexidecimal color code for the provided color name.

Examples

col2hex("white")


abbey-thomas/speechcollectr documentation built on Nov. 19, 2024, 7:09 p.m.