as.protoclust {protoshiny}R Documentation

Convert a generic hclust object to a protoclust object.

Description

Convert a generic hclust object to a protoclust object.

Usage

as.protoclust(hc, protos)

Arguments

hc

A generic hclust object using any linkage.

protos

A vector of prototype label indices for each branch in the dendrogram. The i-th element is the index of the prototype corresponding to the cluster formed on the i-th merge.

Value

An object of class protoclust with a user specified vector of representative prototypes for each cluster. This object is just like hclust but has an identical element:

merge, height, order

identical to the values returned by hclust

protos

a vector of length n - 1. The i-th element is the index of the prototype corresponding to the cluster formed on the i-th merge.


[Package protoshiny version 0.1.0 Index]