Learn R Programming

⚠️There's a newer version (2.1.2) of this package.Take me there.

visNetwork

R package, using vis.js library for network visualization. visNetwork is now available on CRAN.

Online documentation

http://datastorm-open.github.io/visNetwork

And have a look to multiple R examples, vis.js documentation (visDocumentation).

News

2.0.8 available on CRAN

  • #325 : fix cancel manipulation

  • #327 : fix "layout_with_sugiyama" for simple graphs

  • #334 : Ensure compatibility with the next ggraph release

Example

install.packages("visNetwork")

# devtools::install_github("datastorm-open/visNetwork") for development version

require(visNetwork)
?visNetwork

# minimal example
nodes <- data.frame(id = 1:3)
edges <- data.frame(from = c(1,2), to = c(1,3))
visNetwork(nodes, edges)

# vignette
vignette("Introduction-to-visNetwork")

# full javascript documentation
visDocumentation()

# shiny example
shiny::runApp(system.file("shiny", package = "visNetwork"))

Copy Link

Version

Install

install.packages('visNetwork')

Monthly Downloads

53,160

Version

2.0.9

License

MIT + file LICENSE

Maintainer

Benoit Thieurmel

Last Published

December 6th, 2019

Functions in visNetwork (2.0.9)

visClusteringOutliers

Network visualization clustering options - outliers
visFit

Network visualization fit method
visExport

Network export configuration
visGetConnectedEdges

Method getConnectedEdges, with shiny only.
visEdges

Network visualization edges options
visFocus

Network visualization focus method
visGetConnectedNodes

Method getConnectedNodes, with shiny only.
visGetBoundingBox

Method getBoundingBox, with shiny only.
visEvents

Network visualization events
visGetNodes

Function to get nodes data, with shiny only.
visGetEdges

Function to get edges data, with shiny only.
visGetPositions

Network visualization getPositions method
visGetSelection

Function to get selected edges & nodes, with shiny only.
visGroups

Network visualization groups options
visIgraphLayout

Use a igraph layout for compute coordinates & fast rendering
visHierarchicalLayout

Network visualization Hierarchical layout options
visGetViewPosition

Function to get current view position, with shiny only.
visLegend

Add a legend on a visNetwork object
visMoveNode

Network visualization moveNode method
visLayout

Network visualization layout options
visHclust

Visualize Hierarchical cluster analysis.
visInteraction

Network visualization interaction
visNetwork-shiny

Shiny bindings for visNetwork
visGetScale

Function to get current scale of network, with shiny only.
visNetwork-treeModule

Module shiny for visualize and customize a rpart tree
visNearestNodes

Function to nearest nodes of a target node, with shiny only.
visNetwork-collapse

Network visualization collapse / uncollapsed method
visPhysics

Network visualization Physics options
visOptions

Network visualization general options
visNetwork

Network visualization
visNetworkEditor-module

visRemoveEdges

Function to remove edges from network, with shiny only.
visRedraw

Network visualization redraw method
visGetSelectedNodes

Function to get selected nodes, with shiny only.
visNetwork-igraph

Render a visNetwork object from an igraph object
visGetSelectedEdges

Function to get selected edges, with shiny only.
%>%

Export magrittr function
visTree

Visualize Recursive Partitioning and Regression Trees (rpart object)
visStopSimulation

Network visualization stopSimulation method
visStorePositions

Method storePositions, with shiny only.
visTreeEditor

Run and edit a visTree, and get back in R
visSetData

Network visualization setData method
visSelectEdges

Function to select edge(s) from network, with shiny only.
visRemoveNodes

Function to remove nodes from network, with shiny only.
visUpdateNodes

Function to update the information of nodes, with shiny only.
visSelectNodes

Function to select node(s) from network, with shiny only.
visSetOptions

Network visualization full options setter
visUnselectAll

Network visualization unselectAll method
visStabilize

Network visualization stabilize method
visUpdateEdges

Function to update the information of edges, with shiny only.
visStartSimulation

Network visualization startSimulation method
visSave

Save a a visNetwork object to an HTML file
visNetworkEditor

Visualize, customize and get back a visNetwork object. Need shiny package
visSetSelection

Function to select edge(s) / node(s) from network, with shiny only.
visNodes

Network visualization nodes options
visSetTitle

Set title, subtitle, and footer using visNetworkProxy
visClusteringByHubsize

Network visualization clustering options - by hubsize
visClusteringByGroup

Network visualization clustering options - by group
addFontAwesome

Use fontAwesome icons in visNetwork graph
visConfigure

Network visualization configure options
visClusteringByColor

Network visualization clustering options - by color
visClusteringByConnection

Network visualization clustering options - by node id
addExport

addIonicons

Use Ionicons in visNetwork graph
visDocumentation

View full documentation of vis.js on network