1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\name{tree_plot}
\alias{tree_plot}
\title{Visualise a Hierarchical Clustering Model}
\description{
  Provides a visualisation of a hierarchical clustering model via two-dimensional projections of the data assigned to each node.
}
\usage{
tree_plot(sol, labels, node.numbers)
}
\arguments{
  \item{sol}{a clustering solution arising from one of the functions mcdc, mddc and ncutdc.}
  \item{labels}{(optional) a vector of class labels. if provided then points in different classes are plotted in different colours.}
  \item{node.numbers}{(optional) logical. if TRUE then numbers are added to the plot to indicate the order in which nodes were added to the model. if omitted then node.numbers = TRUE.}
}
\examples{
## load optidigits dataset
data(optidigits)

## generate hierarchical clustering model using NCUTDC algorithm
sol <- ncutdc(optidigits$x, 10)

## visualise the solution
tree_plot(sol)
}
\keyword{file}