View source: R/assignColorToCondition.2.R
This function assigns color to a unique cases in a vector. It also allows a supply of color palette in the form of vector of colors which R will use assign colors to the condition, instead of being randomly selected.
1 | assignColorToCondition.2(vec, ColrVecProvided = FALSE, ColorVec = NULL)
|
vec |
A character or factor vector which will be converted into colors |
ColrVecProvided |
A boolean indicarting whether to use supplied color palette |
ColorVec |
A character or factor vector of unique colors (palette) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.