View source: R/node_conversion_dendrogram.R
as.Node.dendrogram | R Documentation |
dendrogram
to a data.tree Node
Convert a dendrogram
to a data.tree Node
## S3 method for class 'dendrogram'
as.Node(
x,
name = "Root",
heightName = "plotHeight",
check = c("check", "no-warn", "no-check"),
...
)
x |
The dendrogram |
name |
The name of the root Node |
heightName |
The name under which the dendrogram's height is stored |
check |
Either
|
... |
Additional parameters |
The root Node
of a data.tree
Other as.Node:
as.Node.data.frame()
,
as.Node.list()
,
as.Node.phylo()
,
as.Node.rpart()
,
as.Node()
hc <- hclust(dist(USArrests), "ave")
dend1 <- as.dendrogram(hc)
tree1 <- as.Node(dend1)
tree1$attributesAll
tree1$totalCount
tree1$leafCount
tree1$height
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.