labclust: labclust is an object

Description Examples

Description

The labclust object is very similar to the hclust object which additionally contains information about where the tree should be cut. You can convert any labclust object to a dendrogram by as.dendrogram

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
x<-matrix(c(
c(1,1,1,1,1,1,1,1,1),
c(2,2,2,2,1,2,2,2,2), 
c(1,1,1,1,1,2,2,2,2),
c(2,2,1,2,2,3,3,3,3),
c(1,1,2,1,1,3,3,3,3), 
c(1,1,2,1,1,3,3,3,3),
c(1,1,2,3,4,5,5,5,5),
c(1,1,2,3,4,5,5,5,5),
c(1,2,3,4,5,6,7,8,9)), ncol=9, byrow=TRUE) 

y<-labeltodendro(x) 
class(y) # can be regarded as hclust too

           

labeltodendro documentation built on May 2, 2019, 5:18 p.m.