Learn R Programming

graphclust (version 1.3)

plotDendrogram: Plot dendrogram to visualize the clustering obtained by the hierarchical clustering algorithm

Description

Plot dendrogram to visualize the clustering obtained by the hierarchical clustering algorithm

Usage

plotDendrogram(res, labels = NULL, labcex = 0.5)

Value

dendrogram

Arguments

res

output of graphClustering()

labels

network labels, default (NULL) network number.

labcex

size of labels in the figure

Examples

Run this code
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)

Run the code above in your browser using DataLab