Color vector definition for multiple plots
data vector (numeric or character) of arbitrary length
Define a color for each data following these criteria:
d is a character vector with length <20 : output a fixed list of different colors
d is a character vector with length >20 : output a list of colors from the rainbow set
d is a numeric vector: output a list of colors in the blue-red scale
Color vector of the same length of the input data vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.