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.1.0 available on CRAN (in a few days...)

  • #361 : fix visHclust with new ggraph version

  • switch to vis-network 9.1.0

  • visTree : fix using invalid R colnames + crash no one X

  • add fontawesome 5.13.0 support

  • #377 : custom manipulation columns

  • #335 : Enable highlightNearest degree for groups

  • visTree : update performance compute boxplot sparkline with large data

  • visTree/TreeModule : fix passing constant variable & character tooltipColumns

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

58,918

Version

2.1.0

License

MIT + file LICENSE

Maintainer

Benoit Thieurmel

Last Published

September 29th, 2021

Functions in visNetwork (2.1.0)

visDocumentation

View full documentation of vis.js on network
visClusteringByGroup

Network visualization clustering options - by group
visClusteringOutliers

Network visualization clustering options - outliers
visClusteringByHubsize

Network visualization clustering options - by hubsize
visConfigure

Network visualization configure options
visClusteringByConnection

Network visualization clustering options - by node id
addFontAwesome

Use fontAwesome icons in visNetwork graph
addExport

Add libraries dependencies used in export visExport
addIonicons

Use Ionicons in visNetwork graph
visEvents

Network visualization events
visEdges

Network visualization edges options
visGetConnectedNodes

Method getConnectedNodes, with shiny only.
visGetConnectedEdges

Method getConnectedEdges, with shiny only.
visExport

Network export configuration
visClusteringByColor

Network visualization clustering options - by color
visFit

Network visualization fit method
visHierarchicalLayout

Network visualization Hierarchical layout options
visGetViewPosition

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

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

Function to get selected nodes, with shiny only.
visGetSelectedEdges

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

Render a visNetwork object from an igraph object
%>%

Export magrittr function
visHclust

Visualize Hierarchical cluster analysis.
visGroups

Network visualization groups options
visNearestNodes

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

Network visualization collapse / uncollapsed method
visIgraphLayout

Use a igraph layout for compute coordinates & fast rendering
visNetwork-shiny

Shiny bindings for visNetwork
visNetwork-treeModule

Module shiny for visualize and customize a rpart tree
visOptions

Network visualization general options
visNetworkEditor-module

Module shiny for visualize and customize and get back a visNetwork object. Using the javascript interface visConfigure.
visNetwork

Network visualization
visGetNodes

Function to get nodes data, with shiny only.
visGetEdges

Function to get edges data, with shiny only.
visPhysics

Network visualization Physics options
visStopSimulation

Network visualization stopSimulation method
visFocus

Network visualization focus method
visGetBoundingBox

Method getBoundingBox, with shiny only.
visStorePositions

Method storePositions, with shiny only.
visUnselectAll

Network visualization unselectAll method
visLayout

Network visualization layout options
visRemoveNodes

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

Network visualization interaction
visRemoveEdges

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

Network visualization setData method
visRedraw

Network visualization redraw method
visUpdateNodes

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

Visualize Recursive Partitioning and Regression Trees (rpart object)
visSetSelection

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

Set title, subtitle, and footer using visNetworkProxy
visTreeEditor

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

Save a a visNetwork object to an HTML file
visSetOptions

Network visualization full options setter
visGetScale

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

Network visualization startSimulation method
visStabilize

Network visualization stabilize method
visGetPositions

Network visualization getPositions method
visUpdateEdges

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

Network visualization nodes options
visMoveNode

Network visualization moveNode method
visSelectEdges

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

Add a legend on a visNetwork object
visNetworkEditor

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

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