ネットワークのみのコミュニティのデンドログラムを作成しようとしています。以下のコード例では、すべてのノードの樹状図が得られますが、比較的大きなデータセットを使用しているため、コミュニティのみの樹状図を作成して、コミュニティのみのより小さな樹状図を作成したいと考えています。可能?
library(igraph)
set.seed(1)
g001 <- erdos.renyi.game(100, 1/10, directed = FALSE)
fc01 <- fastgreedy.community(g001)
colors <- rainbow(max(membership(fc01)))
plot(g001, vertex.size=2, vertex.label=NA, vertex.color=colors[membership(fc01)] )
dendPlot(fc01, mode="phylo", cex=1)
ありがとうございました。