annotToCol2: annotToCol2

View source: R/support_functions.R

annotToCol2R Documentation

annotToCol2

Description

annotToCol2

Usage

annotToCol2(
  annotS = NULL,
  annotT = NULL,
  missing = c("", NA),
  anotype = NULL,
  maxnumcateg = 2,
  categCol = NULL,
  quantitCol = NULL,
  plotLegend = TRUE,
  plotLegendFile = NULL
)

Arguments

annotS

A color matrix

annotT

A color matrix

missing

Convert missing to NA

anotype

Annotation type

maxnumcateg

Maximum number of categories

categCol

Categorical columns

quantitCol

Quantitative columns

plotLegend

Plot legend ?

plotLegendFile

Which file to plot legend ?

Value

A matrix of continuous or discrete colors

Examples

data("scExp")
annotToCol2(SingleCellExperiment::colData(scExp), plotLegend = FALSE)


vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.