ColorMapping-class {ComplexHeatmap} | R Documentation

## Class to map values to colors

### Description

Class to map values to colors

### Details

The `ColorMapping-class` handles color mapping with both discrete values and continuous values. Discrete values are mapped by setting a vector of colors and continuous values are mapped by setting a color mapping function.

### Methods

The `ColorMapping-class` provides following methods:

- `ColorMapping`: contructor methods.

- `map_to_colors,ColorMapping-method`: mapping values to colors.

- `color_mapping_legend,ColorMapping-method`: draw legend or get legend as a `grob` object.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    # for examples, please go to `ColorMapping` method page
    NULL

[Package ComplexHeatmap version 1.18.1 Index]