generate_colors_for_numeric {proBatch} | R Documentation |
Generates a list of colors for a vector of numeric, POSIXct (i.e. the (signed) number of seconds since the beginning of 1970 , or factors
generate_colors_for_numeric(num_col, palette_type = "brewer", i = 1, granularity = 10)
num_col |
a vector of type numeric of factor to generate colors for |
palette_type |
'brewer' or 'viridis' |
i |
if |
granularity |
the breaks to use when generating colors for num_col |
list, containing the following items:
color_vector
- string-like vector of colors
new_annotation
- factor representation of numeric vector
(factor with number of levels equal to "granularity")