annotToCol2: annotToCol2

Description Usage Arguments Value Examples

View source: R/support_functions.R

Description

annotToCol2

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

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

ChromSCape documentation built on Nov. 8, 2020, 6:57 p.m.