cutreeApriori | R Documentation |
This function restricts a tree resulting from mhclust
to the
portion representing the mergings of the apriori clusters.
cutreeApriori(h, verb = 0)
h |
an object of class *hclust*, resulting from |
verb |
verbosity level |
An object of class *hclust*. The object corresponds to the
original tree h
having the non-apriori portion removed.
See mhclust
hclust
for details.
Tomas Sieger, Karel Fiser
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.