Learn R Programming

tfse (version 0.4.2)

col2hex: col2hex

Description

Converts named colors to hex (html) codes.

Usage

col2hex(color, alpha = NULL)

Arguments

color

One or more named colors. Also accepts hex colors (useful for adding alpha values).

alpha

Alpha level ranging form 1.0 (opaque) to 0.0 (transparent). The default (NULL) omits alpha columns from the returned hexadecimal characters.

Value

Hexadecimal color codes