random_color | R Documentation |
Randomly chooses single or multiple built-in color names which R knows about.
See more at grDevices::colors()
random_color(n = 1, distinct = FALSE)
n |
The number of color names. Defaults to 1. |
distinct |
Logical indicating if the colors returned should all be
distinct. Defaults to |
A character vector of color names
library(pliman)
random_color(n = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.