Plot dendrogram to visualize the clustering obtained by the hierarchical clustering algorithm
plotDendrogram(res, labels = NULL, labcex = 0.5)
res
: output of graphClustering()labels
: network labels, default (NULL) network number.labcex
: size of labels in the figuredendrogram
theta <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) obs <- rCollectSBM(rep(10,4), theta)$listGraphs res <- graphClustering(obs, nbCores=2) plotDendrogram(res)
Useful links