Learn R Programming

ztable (version 0.2.3)

color2hex: Convert a named color into a hexadecimal color with rgb value

Description

Convert a named color into a hexadecimal color with rgb value

Usage

color2hex(color)

Arguments

color

A named color

Value

a hexadecimal color

Examples

Run this code
# NOT RUN {
color2hex("green")
color2hex("red")
# }

Run the code above in your browser using DataLab