| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/unbranch.R |
| 3 |
\name{get_root_branches_attr} |
| 4 |
\alias{get_root_branches_attr} |
| 5 |
\title{get attributes from the dendrogram's root(!) branches} |
| 6 |
\usage{ |
| 7 |
get_root_branches_attr(dend, the_attr, warn = dendextend_options("warn"), ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{dend}{dendrogram object} |
| 11 |
|
| 12 |
\item{the_attr}{the attribute to get from the branches (for example "height")} |
| 13 |
|
| 14 |
\item{warn}{logical (default from dendextend_options("warn") is FALSE). |
| 15 |
Set if warning are to be issued, it is safer to keep this at TRUE, |
| 16 |
but for keeping the noise down, the default is FALSE. |
| 17 |
Should a warning be printed when |
| 18 |
the function is used on an object which is NOT a dendrogram.} |
| 19 |
|
| 20 |
\item{...}{passed on to attr} |
| 21 |
} |
| 22 |
\value{ |
| 23 |
The attributes of the branches (often two) of the dendrogram's root |
| 24 |
} |
| 25 |
\description{ |
| 26 |
get attributes from the dendrogram's root(!) branches |
| 27 |
} |
| 28 |
\examples{ |
| 29 |
hc <- hclust(dist(USArrests[2:9, ]), "com") |
| 30 |
dend <- as.dendrogram(hc) |
| 31 |
|
| 32 |
get_root_branches_attr(dend, "height") # 0.00000 71.96247 |
| 33 |
# plot(dend) |
| 34 |
str(dend, 2) |
| 35 |
} |
| 36 |
\seealso{ |
| 37 |
\link{attr} |
| 38 |
} |