color_set_palette {mtb} | R Documentation |
Generate a color vector
Description
Create a list of colors for a data vector by a list major colors.
Usage
color_set_palette(
vect = c(),
vectn = c(),
cols = c("blue", "cyan", "darkorange"),
black = "",
gray9 = ""
)
Arguments
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 |
Value
a named vector
Examples
color_set_palette( c('apple', 'orange', 'lime', 'apple'), c(2,1,3,2), 'red', 'blue')
[Package mtb version 0.1.8 Index]