plot.labclust: dendrogram plot of a labclust object

Description Arguments See Also Examples

View source: R/labeltodendro.R

Description

The resulting plot does not show where the tree should be cut, instead it is very flexible.

Arguments

x

A labclust object to be plotted.

...

All dendrogram plot options

See Also

colorplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
x<-matrix(c(
c(1,1,1,1,1,1,1,1,1),
c(2,2,2,2,1,2,2,2,2), #exchangeable labels are allowed like this
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),#or like this 
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) #each iteration in a row

y<-labeltodendro(x)
plot(y) # S3 method, uses plot.labclust
plot(y,center=TRUE) #you may like to center the dendrogram
abline(h=y$hcut) #or show where the dendrogram should be cut
          

labeltodendro documentation built on May 29, 2017, 6:07 p.m.