基于vis.js的網絡可視化包:visNetwork
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%")

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!