Concatenate A List of ColorMapping objects

# S3 method for 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

cm1 = ColorMapping(colors = c("A" = "red", "B" = "black")) cm2 = ColorMapping(colors = c("B" = "blue", "C" = "green")) c(cm1, cm2)
#> Discrete color mapping: #> name: color_mapping_5 #> levels: #> [1] "A" "B" "C" #> #> colors: #> [1] "#FF0000FF" "#000000FF" "#00FF00FF" #>