Learn R Programming

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

48,681

Version

2.1.2

License

MIT + file LICENSE

Maintainer

Last Published

September 29th, 2022

Functions in visNetwork (2.1.2)

visFit

Network visualization fit method
visClusteringByColor

Network visualization clustering options - by color
%>%

Export magrittr function
addExport

Add libraries dependencies used in export visExport
visGetSelectedNodes

Function to get selected nodes, with shiny only.
visClusteringByConnection

Network visualization clustering options - by node id
visSelectEdges

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

Network visualization clustering options - by group
visFocus

Network visualization focus method
visExport

Network export configuration
visGetSelection

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

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

Network visualization Hierarchical layout options
addFontAwesome

Use fontAwesome icons in visNetwork graph
addIonicons

Use Ionicons in visNetwork graph
visEdges

Network visualization edges options
visNetwork

Network visualization
visRedraw

Network visualization redraw method
visGroups

Network visualization groups options
visGetSelectedEdges

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

Network visualization collapse / uncollapsed method
visHclust

Visualize Hierarchical cluster analysis.
visRemoveEdges

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

Method getBoundingBox, with shiny only.
visNearestNodes

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

Add a legend on a visNetwork object
visEvents

Network visualization events
visSetOptions

Network visualization full options setter
visNetwork-igraph

Render a visNetwork object from an igraph object
visSetData

Network visualization setData method
visNodes

Network visualization nodes options
visSelectNodes

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

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

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

Network visualization unselectAll method
visGetEdges

Function to get edges data, with shiny only.
visDocumentation

View full documentation of vis.js on network
visGetViewPosition

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

Function to get nodes data, with shiny only.
visSave

Save a a visNetwork object to an HTML file
visConfigure

Network visualization configure options
visOptions

Network visualization general options
visIgraphLayout

Use a igraph layout for compute coordinates & fast rendering
visSetTitle

Set title, subtitle, and footer using visNetworkProxy
visSetSelection

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

Network visualization interaction
visClusteringByHubsize

Network visualization clustering options - by hubsize
visGetConnectedEdges

Method getConnectedEdges, with shiny only.
visClusteringOutliers

Network visualization clustering options - outliers
visGetConnectedNodes

Method getConnectedNodes, with shiny only.
visGetPositions

Network visualization getPositions method
visMoveNode

Network visualization moveNode method
visNetwork-treeModule

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

Shiny bindings for visNetwork
visRemoveNodes

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

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

Network visualization stopSimulation method
visNetworkEditor-module

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

Network visualization layout options
visTree

Visualize Recursive Partitioning and Regression Trees (rpart object)
visStorePositions

Method storePositions, with shiny only.
visPhysics

Network visualization Physics options
visStabilize

Network visualization stabilize method
visStartSimulation

Network visualization startSimulation method
visTreeEditor

Run and edit a visTree, and get back in R