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.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

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.4

License

MIT + file LICENSE

Maintainer

Benoit Thieurmel

Last Published

June 14th, 2018

Functions in visNetwork (2.0.4)

addExport

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

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