Description Usage Arguments Value Author(s) Examples
Function for obtaining a vector of RGB color codes where the colors are as distinctive as possible from each other. This function extracts colors from Paired (12 colors), Set2 (8 colors), and Dark2 (8 colors) palettes provided in the RColorBrewer package. If you need more than 28 colors, please remember to add your own palette.
1 | getColorVector(opacity = 0.7, display = FALSE)
|
opacity |
Factor modifying the opacity, valued between [0,1]. Default is set to 0.7. |
display |
By default set to FALSE; if TRUE, displays the color palette. |
Return vector of 28 distinctive RGB color codes.
Hande Topa, hande.topa@helsinki.fi
1 | color_vector=getColorVector()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.