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)"