File: dend_xy.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 (33 lines) | stat: -rw-r--r-- 613 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
32
33
\name{dend_xy}
\alias{dend_xy}
\title{
Coordinates of the Dendrogram
}
\description{
Coordinates of the Dendrogram
}
\usage{
dend_xy(dend)
}
\arguments{

  \item{dend}{a \code{\link{dendrogram}} object.}

}
\details{
\code{dend} will be processed by \code{\link{adjust_dend_by_x}} if it is processed yet.
}
\value{
A list of leave positions (\code{x}) and dendrogram height (\code{y}).
}
\examples{
m = matrix(rnorm(100), 10)
dend1 = as.dendrogram(hclust(dist(m)))
dend_xy(dend1)

dend1 = adjust_dend_by_x(dend1, sort(runif(10)))
dend_xy(dend1)

dend1 = adjust_dend_by_x(dend1, unit(1:10, "cm"))
dend_xy(dend1)
}