visNetwork v2.0.4


Monthly downloads



Network Visualization using 'vis.js' Library

Provides an R interface to the 'vis.js' JavaScript charting library. It allows an interactive visualization of networks.


CRAN Status Badge CRAN Downloads Badge


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

Online documentation

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


2.0.4 available on CRAN

  • Update to fontAwesome 4.7.0

  • Fix node's id bug on collapse

  • Add main argument to selectedBy and nodesIdSelection

  • Add sparkline graphics in visTree

  • New visHclust for visualize Hierarchical cluster analysis

  • New visNetworkEditor and module visNetworkEditorUI to use visConfigure javascript functionnalities in R and shiny

  • Add zoom to visLegend

  • to vis.js 4.20.1

  • Add input$network_initialized

  • Add background to visNetwork

  • Fix visTreeEditor bug using rpart object

  • visTreeEditor : add complexity parameters

  • Fix layout control in visIgraph & visIgraphLayout

  • Add support for edges color/label using highlightNearest/selectedBy

  • New collapse features (?visOptions)

  • New proxy methods : visGetBoundingBox, visGetConnectedEdges, visGetConnectedNodes, visGetEdges, visGetNodes, visGetPositions, visGetScale, visGetSelectedEdges, visGetSelectedNodes, visGetSelection, visGetViewPosition

  • init visTree, to visualize rpart object, visTreeEditor and visTreeModuleServer

alt text



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


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

# vignette

# full javascript documentation

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

Functions in visNetwork

Name Description
addExport Add libraries dependencies used in export visExport
addFontAwesome Use fontAwesome icons in visNetwork graph
visEvents Network visualization events
visGetSelection Function to get selected edges & nodes, with shiny only.
visEdges Network visualization edges options
visNetwork-collapse Network visualization collapse / uncollapsed method
visGetViewPosition Function to get current view position, with shiny only.
visNetworkEditor-module Module shiny for visualize and customize and get back a visNetwork object. Using the javascript interface visConfigure.
visClusteringByConnection Network visualization clustering options - by node id
visNearestNodes Function to nearest nodes of a target node, with shiny only.
visClusteringByGroup Network visualization clustering options - by group
visClusteringByColor Network visualization clustering options - by color
visSetSelection Function to select edge(s) / node(s) from network, with shiny only.
visNetwork Network visualization
visFit Network visualization fit method
addIonicons Use Ionicons in visNetwork graph
visGetPositions Network visualization getPositions method
visSetTitle Set title, subtitle, and footer using visNetworkProxy
visExport Network export configuration
visUnselectAll Network visualization unselectAll method
visMoveNode Network visualization moveNode method
visUpdateEdges Function to update the information of edges, with shiny only.
visGetScale Function to get current scale of network, with shiny only.
visLegend Add a legend on a visNetwork object
visOptions Network visualization general options
visGetBoundingBox Method getBoundingBox, with shiny only.
visFocus Network visualization focus method
visGetSelectedEdges Function to get selected edges, with shiny only.
visPhysics Network visualization Physics options
visGetSelectedNodes Function to get selected nodes, with shiny only.
visSelectEdges Function to select edge(s) from network, with shiny only.
visTree Visualize Recursive Partitioning and Regression Trees (rpart object)
visSelectNodes Function to select node(s) from network, with shiny only.
visInteraction Network visualization interaction
visLayout Network visualization layout options
visTreeEditor Run and edit a visTree, and get back in R
visConfigure Network visualization configure options
visDocumentation View full documentation of vis.js on network
visRedraw Network visualization redraw method
visGetConnectedEdges Method getConnectedEdges, with shiny only.
visGetConnectedNodes Method getConnectedNodes, with shiny only.
visGroups Network visualization groups options
visClusteringByHubsize Network visualization clustering options - by hubsize
visRemoveEdges Function to remove edges from network, with shiny only.
visGetNodes Function to get nodes data, with shiny only.
visHclust Visualize Hierarchical cluster analysis.
visClusteringOutliers Network visualization clustering options - outliers
visStopSimulation Network visualization stopSimulation method
visNetwork-igraph Render a visNetwork object from an igraph object
visGetEdges Function to get edges data, with shiny only.
%>% Export magrittr function
visNodes Network visualization nodes options
visHierarchicalLayout Network visualization Hierarchical layout options
visStorePositions Method storePositions, with shiny only.
visNetworkEditor Visualize, customize and get back a visNetwork object. Need shiny package
visSetData Network visualization setData method
visIgraphLayout Use a igraph layout for compute coordinates & fast rendering
visSetOptions Network visualization full options setter
visNetwork-shiny Shiny bindings for visNetwork
visSave Save a a visNetwork object to an HTML file
visStabilize Network visualization stabilize method
visRemoveNodes Function to remove nodes from network, with shiny only.
visNetwork-treeModule Module shiny for visualize and customize a rpart tree
visUpdateNodes Function to update the information of nodes, with shiny only.
visStartSimulation Network visualization startSimulation method
No Results!

Vignettes of visNetwork

No Results!

Last month downloads


Date 2018-06-13
License MIT + file LICENSE
VignetteBuilder knitr, rmarkdown, webshot
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2018-06-14 07:23:11 UTC; Datastorm
Repository CRAN
Date/Publication 2018-06-14 08:23:00 UTC

Include our badge in your README