File: attach_annotation-Heatmap-method.Rd

package info (click to toggle)
r-bioc-complexheatmap 2.14.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,632 kB
  • sloc: makefile: 5
file content (31 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\name{attach_annotation-Heatmap-method}
\alias{attach_annotation,Heatmap-method}
\alias{attach_annotation}
\title{
Attach heatmap annotations to the heatmap
}
\description{
Attach heatmap annotations to the heatmap
}
\usage{
\S4method{attach_annotation}{Heatmap}(object, ha, side = c("top", "bottom", "left", "right"),
    gap = unit(1, "points"))
}
\arguments{

  \item{object}{A \code{\link{Heatmap-class}} object.}
  \item{ha}{A \code{\link{HeatmapAnnotation-class}} object.}
  \item{side}{Which side of the heatmap. Value should be in "top", "bottom", "left", "right".}
  \item{gap}{Space between the two heatmap annotations.}

}
\examples{
m = matrix(rnorm(100), 10)
ht = Heatmap(m)
ha = HeatmapAnnotation(foo = 1:10)
ht = attach_annotation(ht, ha)
ht
ha2 = HeatmapAnnotation(bar = letters[1:10])
ht = attach_annotation(ht, ha2)
ht
}