View source: R/grid.dendrogram.R
dend_xy | R Documentation |
Coordinates of the Dendrogram
dend_xy(dend)
dend |
a |
dend
will be processed by adjust_dend_by_x
if it is processed yet.
A list of leave positions (x
) and dendrogram height (y
).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.