col2hex: R color to RGB (red/green/blue) conversion.

col2hexR Documentation

R color to RGB (red/green/blue) conversion.

Description

R color to RGB (red/green/blue) conversion.

Usage

col2hex(cname, alpha = FALSE)

Arguments

cname

vector of any of the three kinds of R color specifications, i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer i meaning palette()[i].

alpha

logical value indicating whether the alpha channel (opacity) values should be returned.


openanalytics/BIGL documentation built on July 7, 2023, 7:49 a.m.