简单介绍R语言networkD3一系列网图的使用
力导向图
简单力导向图
1 | library(networkD3) |
复杂力导向图
1 | data("MisLinks") |
桑基图
1 | URL = paste0("https://cdn.rawgit.com/christophergandrud/networkD3/", |
树状图
辐射
1 | URL = paste0("https://cdn.rawgit.com/christophergandrud/networkD3/", |
对角
1 | diagonalNetwork(List = Flare,fontSize = 10,opacity = 0.9,height = 500) |
聚类
1 | hc = hclust(dist(USArrests), "ave") |