Convert color names to hex RGB strings

Convert color names to hex RGB strings

Keywords
color
Usage
col2hex(cname)
Arguments
cname

Color name(s)

Value

Character vector giving the hex color code translation of the provided color names.

See Also

col2rgb, colors, rgb

Aliases
  • col2hex
Examples
# NOT RUN {
col2hex(c("red","yellow","lightgrey"))
# }
Documentation reproduced from package gplots, version 3.0.1.1, License: GPL-2

Community examples

Looks like there are no examples yet.