Debian Codegraph @

inst/examples/example_twins.R

raw
1 if (require(cluster)) {
2 model <- agnes(votes.repub, metric = "manhattan", stand = TRUE)
3 dg <- as.dendrogram(model)
4 ggdendrogram(dg)
5 }
6
7
8 if (require(cluster)) {
9 data(votes.repub)
10 model <- diana(votes.repub, metric = "manhattan", stand = TRUE)
11 dg <- as.dendrogram(model)
12 ggdendrogram(dg)
13 }