powered by
Convert R colours to RGBA hexadecimal colour values
toRGB(x, alpha = 1)
see the col argument in col2rgb for valid specifications
col
col2rgb
alpha channel on 0-1 scale
hexadecimal colour value (if is.na(x), return "transparent" for compatibility with Plotly)