Examples for 'cluster::pltree'


Plot Clustering Tree of a Hierarchical Clustering

Aliases: pltree pltree.twins

Keywords: cluster hplot

### ** Examples

data(votes.repub)
agn <- agnes(votes.repub)
pltree(agn)
plot of chunk example-cluster-pltree-1
dagn  <- as.dendrogram(as.hclust(agn))
dagn2 <- as.dendrogram(as.hclust(agn), hang = 0.2)
op <- par(mar = par("mar") + c(0,0,0, 2)) # more space to the right
plot(dagn2, horiz = TRUE)
plot of chunk example-cluster-pltree-1
plot(dagn, horiz = TRUE, center = TRUE,
     nodePar = list(lab.cex = 0.6, lab.col = "forest green", pch = NA),
     main = deparse(agn$call))
plot of chunk example-cluster-pltree-1
par(op)

[Package cluster version 2.1.4 Index]