- データセットの作成(matrix,dist)
- デンドログラム(樹形図)のプロット方法
- グラフによる可視化
- horizontal dendrogram in R with labels
- 実践で学ぶネットワーク分析
- [連載]フリーソフトによるデータ解析・マイニング第61回 統計的テキスト解析(6)~語のネットワーク分析~
- Visualizing Dendrograms in R
- Network Analysis with igraph
require(graphics) | |
#?hclust | |
hc <- hclust(dist(USArrests), "ave") | |
# hc <- hclust(dist(USArrests), "complete") | |
# dist(USArrests) | |
plot(hc) | |
plot(hc, hang = -1) | |
plot(as.dendrogram(hc),horiz=TRUE) # 横向き | |
par(mar=c(3,1,0,9)) # 幅調整 | |
plot(as.dendrogram(hc),horiz=TRUE) | |
library('dendextend') | |
dend <- color_branches(hc, k=3) | |
plot(dend,horiz=TRUE) # color |