Showing
1 changed file
with
18 additions
and
0 deletions
| ... | @@ -66,3 +66,21 @@ print_cluster(cls4, "SentenceMembership_4clusters.txt") | ... | @@ -66,3 +66,21 @@ print_cluster(cls4, "SentenceMembership_4clusters.txt") |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | 68 | ||
| 69 | +#### | ||
| 70 | +# 5 clusters | ||
| 71 | +png("Dendogram_5clusters.png", height = 600, width = 975) | ||
| 72 | +plot(senclus, hang=-1) | ||
| 73 | +cls5 <- rect.hclust(senclus, k=5, border = 3:4) | ||
| 74 | +dev.off() | ||
| 75 | + | ||
| 76 | +print_cluster(cls5, "SentenceMembership_5clusters.txt") | ||
| 77 | + | ||
| 78 | + | ||
| 79 | +### | ||
| 80 | +# 6 clusters | ||
| 81 | +png("Dendogram_6clusters.png", height = 600, width = 975) | ||
| 82 | +plot(senclus, hang=-1) | ||
| 83 | +cls6 <- rect.hclust(senclus, k=6, border = 3:4) | ||
| 84 | +dev.off() | ||
| 85 | +print_cluster(cls6, "SentenceMembership_6clusters.txt") | ||
| 86 | + | ... | ... |
-
Please register or login to post a comment