| Line 57... |
Line 57... |
| 57 |
is.leaf(object)
|
57 |
is.leaf(object)
|
| 58 |
}
|
58 |
}
|
| 59 |
\arguments{
|
59 |
\arguments{
|
| 60 |
\item{object}{any \R object that can be made into one of class
|
60 |
\item{object}{any \R object that can be made into one of class
|
| 61 |
\code{"dendrogram"}.}
|
61 |
\code{"dendrogram"}.}
|
| 62 |
\item{x,y}{object(s) of class \code{"dendrogram"}.}
|
62 |
\item{x, y}{object(s) of class \code{"dendrogram"}.}
|
| 63 |
\item{hang}{numeric scalar indicating how the \emph{height} of leaves
|
63 |
\item{hang}{numeric scalar indicating how the \emph{height} of leaves
|
| 64 |
should be computed from the heights of their parents; see
|
64 |
should be computed from the heights of their parents; see
|
| 65 |
\code{\link{plot.hclust}}.}
|
65 |
\code{\link{plot.hclust}}.}
|
| 66 |
\item{type}{type of plot.}
|
66 |
\item{type}{type of plot.}
|
| 67 |
\item{center}{logical; if \code{TRUE}, nodes are plotted centered with
|
67 |
\item{center}{logical; if \code{TRUE}, nodes are plotted centered with
|
| Line 167... |
Line 167... |
| 167 |
2.13.0, there is also a \code{\link{as.hclust}()} method as an inverse.
|
167 |
2.13.0, there is also a \code{\link{as.hclust}()} method as an inverse.
|
| 168 |
|
168 |
|
| 169 |
\code{rev.dendrogram} simply returns the dendrogram \code{x} with
|
169 |
\code{rev.dendrogram} simply returns the dendrogram \code{x} with
|
| 170 |
reversed nodes, see also \code{\link{reorder.dendrogram}}.
|
170 |
reversed nodes, see also \code{\link{reorder.dendrogram}}.
|
| 171 |
|
171 |
|
| 172 |
The \code{\link{merge}(x,y, ...)} method allows to join two (or more!)
|
172 |
The \code{\link{merge}(x, y, ...)} method which merges two or more
|
| 173 |
dendrograms into a new one which has \code{x} and \code{y} (and
|
173 |
dendrograms into a new one which has \code{x} and \code{y} (and
|
| 174 |
optional further arguments) as branches.
|
174 |
optional further arguments) as branches.
|
| 175 |
|
175 |
|
| 176 |
\code{is.leaf(object)} is logical indicating if \code{object} is a
|
176 |
\code{is.leaf(object)} returns logical indicating if \code{object} is a
|
| 177 |
leaf (the most simple dendrogram).
|
177 |
leaf (the most simple dendrogram).
|
| - |
|
178 |
|
| 178 |
\code{plotNode()} and \code{plotNodeLimit()} are helper functions.
|
179 |
\code{plotNode()} and \code{plotNodeLimit()} are helper functions.
|
| 179 |
}
|
180 |
}
|
| 180 |
\note{
|
181 |
\note{
|
| 181 |
\describe{
|
182 |
\describe{
|
| 182 |
\item{\code{plot()}:}{When using \code{type = "triangle"},
|
183 |
\item{\code{plot()}:}{When using \code{type = "triangle"},
|
| Line 187... |
Line 188... |
| 187 |
}
|
188 |
}
|
| 188 |
\section{Warning}{
|
189 |
\section{Warning}{
|
| 189 |
Some operations on dendrograms (including plotting) make use of
|
190 |
Some operations on dendrograms (including plotting) make use of
|
| 190 |
recursion. For very deep trees It may be necessary to increase
|
191 |
recursion. For very deep trees It may be necessary to increase
|
| 191 |
\code{\link{options}("expressions")}: if you do you are likely to need
|
192 |
\code{\link{options}("expressions")}: if you do you are likely to need
|
| 192 |
to set the C stack size larger than the OS default if possible
|
193 |
to set the C stack size larger than the default where possible.
|
| 193 |
(which it is not on Windows).
|
- |
|
| 194 |
}
|
194 |
}
|
| 195 |
\seealso{
|
195 |
\seealso{
|
| 196 |
\code{\link{dendrapply}} for applying a function to \emph{each} node.
|
196 |
\code{\link{dendrapply}} for applying a function to \emph{each} node.
|
| 197 |
\code{\link{order.dendrogram}} and \code{\link{reorder.dendrogram}};
|
197 |
\code{\link{order.dendrogram}} and \code{\link{reorder.dendrogram}};
|
| 198 |
further, the \code{\link{labels}} method.
|
198 |
further, the \code{\link{labels}} method.
|