Heatmap-class {heatmaps} | R Documentation

## An S4 class to represent a heatmap

### Description

An S4 class to represent a heatmap

### Slots

`image`

  A numeric Matrix

`scale`

  A length-2 vector

`coords`

  A length-2 integer vector

`nseq`

  An integer

`label`

  A character vector

`metadata`

  A list containing arbitrary metadata

  A class used to represent a heatmap in a simple, self-contained way

  Slots can be accessed and set using getters and setters with the same name.

### See Also

CoverageHeatmap PatternHeatmap plotHeatmap plotHeatmapMeta

### Examples

    data(HeatmapExamples)

    hm = new("Heatmap",
             image=mat,
             scale=c(0,max(mat)),
             coords=c(-100L, 100L),
             nseq=1000L,
             label="Test",
             metadata=list())

    # or use the constructor:
    hm = Heatmap(mat, coords=c(-100, 100), label="Test")

[Package heatmaps version 1.10.0 Index]