color_set_palette | R Documentation |
Create a list of colors for a data vector by a list major colors.
color_set_palette(
vect = c(),
vectn = c(),
cols = c("blue", "cyan", "darkorange"),
black = "",
gray9 = ""
)
vect |
A vector for groups. |
vectn |
An integer vector with length 0 or with the same length of |
cols |
One of
|
black |
A level in |
gray9 |
A level in |
a named vector
color_set_palette( c('apple', 'orange', 'lime', 'apple'), c(2,1,3,2), 'red', 'blue')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.