dataAnnotationColor {singleCellTK} | R Documentation

## Generate distinct colors for all categorical col/rowData entries. Character columns will be considered as well as all-integer columns. Any column with all-distinct values will be excluded.

### Description

Generate distinct colors for all categorical col/rowData entries. Character columns will be considered as well as all-integer columns. Any column with all-distinct values will be excluded.

### Usage

    dataAnnotationColor(inSCE, axis = NULL, colorGen = distinctColors)

### Arguments

`inSCE` | SingleCellExperiment inherited object.
`axis` | Choose from `"col"` or `"row"`.
`colorGen` | A function that generates color code vector by giving an integer for the number of colors. Alternatively, `rainbow`. Default `distinctColors`.

### Value

A `list` object containing distinct colors mapped to all possible categorical entries in `rowData(inSCE)` or `colData(inSCE)`.

### Author(s)

Yichen Wang

[Package singleCellTK version 2.2.0 Index]