PPCI (version 0.1.5)

node_plot: Visualise a Node in a Hierarchical Clustering Model

Description

Provides a visualisation of the partition at an internal node (or of the potential partition at a leaf node) via a two-dimensional projection of the data assigned to the node.

Usage

node_plot(sol, node, labels, transparency)

Arguments

sol

a clustering solution arising from one of the functions mcdc, mddc and ncutdc.

node

the node to be visualised. can be either an integer specifying the node number in sol$Nodes or a vector of length two specifying c(depth, position at depth) of the node.

labels

(optional) a vector of class labels. if provided then points in different classes are plotted in different colours. the external validity of each partition is also indicated when this can be computed using true class labels.

transparency

(optional) if ommitted then points in the scatterplot are shown as solid. If set to a value in (0, 1) then points are shown with transparency. Lower values correspond with a greater degree of transparency.