dataAnnotationColor: Generate distinct colors for all categorical col/rowData...

Description Usage Arguments Value Author(s)

View source: R/plotSCEHeatmap.R

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

1

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


singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.