generate_colors_for_numeric {proBatch} | R Documentation

## Generates color list

### Description

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

### Usage

    generate_colors_for_numeric(num_col, palette_type = "brewer", i = 1,
      granularity = 10)

### Arguments

`num_col` | a vector of type numeric of factor to generate colors for
`palette_type` | 'brewer' or 'viridis'
`i` | if `palette_type` is 'brewer' the palette argument to `brewer_pal`. If `palette_type` is 'viridis' the option argument to virids_pal ()
`granularity` | the breaks to use when generating colors for num_col

### Value

list, containing the following items:

1. `color_vector` - string-like vector of colors

2. `new_annotation` - factor representation of numeric vector (factor with number of levels equal to "granularity")

[Package proBatch version 1.0.0 Index]