toRGB

0th

Percentile

Convert R colours to RGBA hexadecimal colour values

Convert R colours to RGBA hexadecimal colour values

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

Aliases
  • toRGB
Documentation reproduced from package plotly, version 4.5.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.