Heatmap-class: An S4 class to represent a heatmap

Description Slots See Also Examples

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

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

heatmaps documentation built on Nov. 8, 2020, 7:32 p.m.