c.ColorMapping: Concatenate A List of ColorMapping objects

Description Usage Arguments Details Examples

View source: R/ColorMapping-class.R

Description

Concatenate A List of ColorMapping objects

Usage

1
2
## S3 method for class 'ColorMapping'
c(..., name = NULL)

Arguments

...

A list of ColorMapping-class objects.

name

Name of the new merged color mapping.

Details

Only discrete color mappings can be concatenated.

Examples

1
2
3
cm1 = ColorMapping(colors = c("A" = "red", "B" = "black"))
cm2 = ColorMapping(colors = c("B" = "blue", "C" = "green"))
c(cm1, cm2)

Example output

Loading required package: grid
========================================
ComplexHeatmap version 2.6.2
Bioconductor page: http://bioconductor.org/packages/ComplexHeatmap/
Github page: https://github.com/jokergoo/ComplexHeatmap
Documentation: http://jokergoo.github.io/ComplexHeatmap-reference

If you use it in published research, please cite:
Gu, Z. Complex heatmaps reveal patterns and correlations in multidimensional 
  genomic data. Bioinformatics 2016.

This message can be suppressed by:
  suppressPackageStartupMessages(library(ComplexHeatmap))
========================================

Discrete color mapping:
name: color_mapping_3 
levels:
[1] "A" "B" "C"

colors:
[1] "#FF0000FF" "#000000FF" "#00FF00FF"

ComplexHeatmap documentation built on Nov. 14, 2020, 2:01 a.m.