| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/DendSer.R |
| 3 |
\name{DendSer.dendrogram} |
| 4 |
\alias{DendSer.dendrogram} |
| 5 |
\title{Tries to run DendSer on a dendrogram} |
| 6 |
\usage{ |
| 7 |
DendSer.dendrogram(dend, ser_weight, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{dend}{An object of class dendrogram} |
| 11 |
|
| 12 |
\item{ser_weight}{Used by cost function to evaluate |
| 13 |
ordering. For cost=costLS, this is a vector of |
| 14 |
object weights. Otherwise is a dist or symmetric matrix. |
| 15 |
passed to DendSer. |
| 16 |
If it is missing, the cophenetic distance is used instead.} |
| 17 |
|
| 18 |
\item{...}{parameters passed to \link[DendSer]{DendSer}} |
| 19 |
} |
| 20 |
\value{ |
| 21 |
Numeric vector giving an optimal dendrogram order |
| 22 |
} |
| 23 |
\description{ |
| 24 |
Implements dendrogram seriation. |
| 25 |
The function tries to turn the dend into hclust, on |
| 26 |
which it runs \link[DendSer]{DendSer}. |
| 27 |
|
| 28 |
Also, if a distance matrix is missing, it will try |
| 29 |
to use the \link{cophenetic} distance. |
| 30 |
} |
| 31 |
\examples{ |
| 32 |
\dontrun{ |
| 33 |
library(DendSer) # already used from within the function |
| 34 |
hc <- hclust(dist(USArrests[1:4, ]), "ave") |
| 35 |
dend <- as.dendrogram(hc) |
| 36 |
DendSer.dendrogram(dend) |
| 37 |
} |
| 38 |
} |
| 39 |
\seealso{ |
| 40 |
\code{\link[DendSer]{DendSer}}, \link{DendSer.dendrogram} , |
| 41 |
\link{untangle_DendSer}, \link{rotate_DendSer} |
| 42 |
} |