【R 可視化】R 畫關係網絡圖

rm(list=ls()) library(igraph) #1.用igraph建立圖表 g<- graph(c(1,2, 1,8,1,9,1,10,2,4,2,5,2,6,2,3,3,7,3,11,3,12,3,1), directed=T) com = walktrap.community(g, steps = 6) V(g)$sg = com$membership + 1 V(g)$col
相關文章
相關標籤/搜索