Examples for 'plotly::toRGB'


Convert R colours to RGBA hexadecimal colour values

Aliases: toRGB

Keywords:

### ** Examples


toRGB("steelblue")
[1] "rgba(70,130,180,1)"
# [1] "rgba(70,130,180,1)"

m <- list(
  color = toRGB("red"),
  line = list(
    color = toRGB("black"),
    width = 19
  )
)

plot_ly(x = 1, y = 1, marker = m)
No trace type specified:
  Based on info supplied, a 'scatter' trace seems appropriate.
  Read more about this trace type -> https://plotly.com/r/reference/#scatter
No scatter mode specifed:
  Setting the mode to markers
  Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode
Error in loadNamespace(name): there is no package called 'webshot'

[Package plotly version 4.10.0 Index]