convertcolor {LSD}R Documentation

Map R colors to hexadecimal representation

Description

Convert R built-in colors to hexadecimal representation.

Usage

convertcolor(cols, alpha = NULL)

Arguments

cols

a character vector containing R built-in colors.

alpha

alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).

Value

convertcolor returns a vector containing R built-in colors in hexadecimal representation.

Author(s)

Bjoern Schwalb

See Also

disco, colorpalette, demotour

Examples

convertcolor(c("red","green","blue"))

[Package LSD version 4.1-0 Index]