基于vis.js的网络可视化包:visNetwork
jopen
9年前
visNetwork 是一个R包用于实现网络的可视化。基于 vis.js javascript 库(http://visjs.org/)实现。
安装
Package is actually only available on github. You can install it with :
devtools::install_github("DataKnowledge/visNetwork")
Minimal example
visNetwork needs at least two informations :
- a nodes data.frame, with id column
- a edges data.frame, with from and to columns
require(visNetwork, quietly = TRUE) # minimal example nodes <- data.frame(id = 1:3) edges <- data.frame(from = c(1,2), to = c(1,3)) visNetwork(nodes, edges, width = "100%")