dend_xy: Coordinates of the Dendrogram

View source: R/grid.dendrogram.R

dend_xyR Documentation

Coordinates of the Dendrogram

Description

Coordinates of the Dendrogram

Usage

dend_xy(dend)

Arguments

dend

a dendrogram object.

Details

dend will be processed by adjust_dend_by_x if it is processed yet.

Value

A list of leave positions (x) and dendrogram height (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)

jokergoo/ComplexHeatmap documentation built on Nov. 17, 2023, 11:27 a.m.