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

55,983

Version

2.0.8

License

MIT + file LICENSE

Maintainer

Benoit Thieurmel

Last Published

August 28th, 2019

Functions in visNetwork (2.0.8)

addFontAwesome

Use fontAwesome icons in visNetwork graph
visClusteringOutliers

Network visualization clustering options - outliers
visDocumentation

View full documentation of vis.js on network
visConfigure

Network visualization configure options
addExport

visClusteringByHubsize

Network visualization clustering options - by hubsize
addIonicons

Use Ionicons in visNetwork graph
visClusteringByColor

Network visualization clustering options - by color
visClusteringByGroup

Network visualization clustering options - by group
visClusteringByConnection

Network visualization clustering options - by node id
visGetConnectedEdges

Method getConnectedEdges, with shiny only.
visEvents

Network visualization events
visEdges

Network visualization edges options
visGetBoundingBox

Method getBoundingBox, with shiny only.
visFocus

Network visualization focus method
visGetNodes

Function to get nodes data, with shiny only.
visGetSelection

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

Function to get edges data, with shiny only.
visGetPositions

Network visualization getPositions method
visGetConnectedNodes

Method getConnectedNodes, with shiny only.
visHclust

Visualize Hierarchical cluster analysis.
visGroups

Network visualization groups options
visNetwork-treeModule

Module shiny for visualize and customize a rpart tree
visNetwork-shiny

Shiny bindings for visNetwork
visGetScale

Function to get current scale of network, with shiny only.
visExport

Network export configuration
visGetViewPosition

Function to get current view position, with shiny only.
visNetwork-collapse

Network visualization collapse / uncollapsed method
visNearestNodes

Function to nearest nodes of a target node, with shiny only.
visHierarchicalLayout

Network visualization Hierarchical layout options
visOptions

Network visualization general options
visIgraphLayout

Use a igraph layout for compute coordinates & fast rendering
%>%

Export magrittr function
visNetwork-igraph

Render a visNetwork object from an igraph object
visLegend

Add a legend on a visNetwork object
visInteraction

Network visualization interaction
visMoveNode

Network visualization moveNode method
visFit

Network visualization fit method
visRedraw

Network visualization redraw method
visRemoveEdges

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

Network visualization Physics options
visGetSelectedNodes

Function to get selected nodes, with shiny only.
visSetTitle

Set title, subtitle, and footer using visNetworkProxy
visNodes

Network visualization nodes options
visGetSelectedEdges

Function to get selected edges, with shiny only.
visNetworkEditor

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

Network visualization unselectAll method
visSetSelection

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

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

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

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

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

Network visualization stabilize method
visSave

Save a a visNetwork object to an HTML file
visStartSimulation

Network visualization startSimulation method
visUpdateNodes

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

Method storePositions, with shiny only.
visNetworkEditor-module

visStopSimulation

Network visualization stopSimulation method
visNetwork

Network visualization
visSetData

Network visualization setData method
visSetOptions

Network visualization full options setter
visTree

Visualize Recursive Partitioning and Regression Trees (rpart object)
visLayout

Network visualization layout options
visTreeEditor

Run and edit a visTree, and get back in R