cutreeApriori: Cut off the non-apriori portion of a tree resulting from

cutreeAprioriR Documentation

Cut off the non-apriori portion of a tree resulting from

Description

This function restricts a tree resulting from mhclust to the portion representing the mergings of the apriori clusters.

Usage

cutreeApriori(h, verb = 0)

Arguments

h

an object of class *hclust*, resulting from mhclust.

verb

verbosity level

Value

An object of class *hclust*. The object corresponds to the original tree h having the non-apriori portion removed. See mhclust hclust for details.

Author(s)

Tomas Sieger, Karel Fiser

Examples

# demo data to cluster
x<-c(1,2,4,10,13,20,24)
x<-cbind(x,x)
h<-mhclust(x,g=c(1,1,1,2,2,3,3))
h2<-cutreeApriori(h)
opar<-par(mfrow=c(1,2))
plot(h)
plot(h2)
par(opar)

tsieger/mhca documentation built on June 5, 2023, 7:26 p.m.