Learn R Programming

plotly (version 4.10.0)

showRGB: View colors already formatted by toRGB()

Description

Useful for viewing colors after they've been converted to plotly.js' color format -- "rgba(255, 255, 255, 1)"

Usage

showRGB(x, ...)

Arguments

x

character string specifying color(s).

...

arguments passed along to scales::show_col.

Author

Carson Sievert

Examples

Run this code

showRGB(toRGB(colors()), labels = FALSE)

Run the code above in your browser using DataLab