Returns a vector of color codes of the respective palette

color_vector(clrp, names = NULL, clrp.adjust = NULL, n.colors = NA)

Arguments

clrp

Character value. Denotes the color palette of interest. Run all_colorpalettes() to obtain valid inputs.

names

Character vector or NULL. Assigns names to the color vector (in the same order).

clrp.adjust

Named character vector or NULL. If character, it adjusts the colors that are used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group.

n.colors

Numeric value. Must be specified if clrp is set to 'default' and names is NULL.

Value

Character vector.