Get vector of colors for observations in one column of a data frame
Source:R/colors.R
get_colors_vctr.Rd
Get vector of colors for observations in one column of a data frame
Usage
get_colors_vctr(dat, colname, palette_fun = grDevices::palette.colors, ...)
Arguments
- dat
data frame
- colname
column name in
dat
- palette_fun
Function for selecting colors. Assumed to contain
n
for the number of colors. Default:grDevices::palette.colors()
- ...
additional arguments forwarded to
palette_fun