View source: R/basic_functions.R
DistinctColors | R Documentation |
create vector containing Hex color codes
DistinctColors(range, random = FALSE)
range |
number of colors as sequence |
random |
logical, indicating whether or not to provide random colors, Default: FALSE |
DistinctColors(1:3) # [1] "#FFFF00" "#1CE6FF" "#FF34FF" set.seed(1) DistinctColors(1:3, TRUE) # [1] "#575329" "#CB7E98" "#D86A78"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.