toRGB: Convert R colours to RGBA hexadecimal colour values

Description Usage Arguments Value

Description

Convert R colours to RGBA hexadecimal colour values

Usage

1
toRGB(x, alpha = 1)

Arguments

x

see the col argument in col2rgb for valid specifications

alpha

alpha channel on 0-1 scale

Value

hexadecimal colour value (if is.na(x), return "transparent" for compatibility with Plotly)


gvarunkumar/plotly documentation built on May 17, 2019, 9:29 a.m.