col2hex: Convert R colors to Hexadecimal

Description Usage Arguments Value See Also Examples

Description

Convert R colors() to Hexadecimal.

Usage

1
col2hex(rcolor)

Arguments

rcolor

A character string taken from R's built-in color names.

Value

Returns a character string of converted hexadecimal colors.

See Also

colors, rgb, col2rgb

Examples

1
2
3
col2hex("darkblue")
col2hex(c("darkblue", "red"))
cat(paste0("<hr color=\"", col2hex("red"), "\" size=\"4\">"))

trinker/reports documentation built on May 31, 2019, 9:51 p.m.