50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

heatmaply (version 0.10.1)

col2plotlyrgb: Color to RGB Text

Description

Plotly takes colors in this format "rgb(255, 0, 0)"

Usage

col2plotlyrgb(col)

Arguments

col
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].

Value

A character of the form "rgb(value1,value1,value3)"

See Also

col2rgb

Examples

Run this code
## Not run: ------------------------------------
# col2rgb("peachpuff")
# col2plotlyrgb("peachpuff")
## ---------------------------------------------

Run the code above in your browser using DataLab