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

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

alt text

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"))

News

visNetwork 2.0.6

  • Fix using FontAwesome icons in shinydashboard

visNetwork 2.0.5

  • Fix clustering functions using level
  • add input$network_highlight_color_id and input$network_highlight_label_id
  • #266 : enabled custom manipulation
  • collapse : can keep coordinates and set label suffix
  • add sort argument to selectedBy
  • Fix passing icon using visGroup and proxy
  • Fix passing margin to nodes
  • Fix bug passing character to visTree
  • #290 : Fix legend using only one group

visNetwork 2.0.4

  • 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

visNetwork 2.0.3

  • Fix CRAN VIGNETTE BUILDER

visNetwork 2.0.2

  • 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

visNetwork 2.0.0

  • add support for edges color/label using highlight/selectedBy
  • to vis.js 4.20.0
  • new proxy methods : visGetBoundingBox, visGetConnectedEdges, visGetConnectedNodes, visGetEdges, visGetNodes, visGetPositions, visGetScale, visGetSelectedEdges, visGetSelectedNodes, visGetSelection, visGetViewPosition
  • fix visOptions passing nodes as list rather data.frame
  • init visTree, to visualize rpart object

visNetwork 1.0.3

  • new hideColor argument to control hidden nodes & edges
  • add pdf export
  • enabled layout_with_sugiyama with visIgraphLayout
  • To vis.js 4.17.0
  • enabled passing nodes & edges as list
  • fix igraghLayout with rmarkdown and tabset
  • fix some bugs and add some options on legend
  • fix passing customScalingFunction using visGroups
  • fix reset options using unselectAll
  • add visNearestNodes function
  • store positions of nodes before rendering with visGetNodes
  • add delay on tooltip popup (so you can click on a link...!)

visNetwork 1.0.2

  • fix some bad interactions with dplyr & data.table
  • fix visSelect... & visRemove.. when passing only one id greater than 9
  • add updateOptions to visUpdateNodes & visRemoveNodes and fix update of options using this functions with proxy
  • add useLabels option for nodeIdSelection
  • Fix bad interaction with columns order & visIgraphLayout
  • add visGetNodes & visGetEdges to get data using shiny
  • add submain and footer argument
  • change export height estimation
  • Fix visInteraction bug using visOptions together
  • Fix passing dashes options + add example
  • Fix timevis bad interaction

visNetwork 1.0.1

  • New options for highlightNearest : can use hierarchical information
  • Add type argument to set listener once, or disabled it
  • Enabled visEvents with shiny/visNetworkProxy
  • Add some options for clustering & fix interactions with visOptions
  • Fix some bug in legend placement with some special case
  • New size control with visIgraphLayout
  • To vis.js 4.16.1

visNetwork 1.0.0

  • really lot of (good) changes in 0.2.2, so let's go to 1.0.0

visNetwork 0.2.2

  • fix / improve highlightNearest with high degree (can now have the entire sub-network)
  • can now set highlightNearest when hover a node, and also use another click / hover event
  • enabled highlightNearest with icons && image, and all combinaisons !
  • new visSelectNodes, visSelectEdges & visSetSelection to select data in shiny
  • add visSetOptions, to set many parameters in one time
  • add visMoveNode & visUnselectAll
  • enabled multiple groups selection
  • can now add a title to network & legend (main argument in visNetwork/visLegend function)
  • fix passing directly icon in nodes data.frame
  • add ionicons icons possibilities. See ?addIonicons
  • update font-awesome to 4.5.0
  • fix some bad interactions when highlightNearest/selectedBy/nodesIdSelection are set together, and using visUpdateNodes / visOptions with proxy
  • new visRemoveNodes & visRemoveEdges to remove data in shiny
  • new visUpdateNodes & visUpdateEdges to update data in shiny
  • enable visOptions with visNetworkProxy
  • add randomSeed to visIgraphLayout
  • add quick support for label.cex and label.color with visIgraph
  • to vis.js 4.15.0

visNetwork 0.2.1

  • can now passing "list" options directly with data.frame with specific notation
  • add visSave for html file, and visExport to save as png/jpeg (shiny or browser only)
  • fix some bad interactions when highlightNearest/selectedBy/nodesIdSelection are set together
  • fix selectedBy & highlightNearest redraw when nodes have coordinates
  • new function visIgraphLayout to compute coordinates using igraph, and render faster !
  • init new function visIgraph to plot visNetwork object from igraph object
  • adding new methods available for a use in shiny with visNetworkProxy : visSetData, visStabilize, visStartSimulation, visStopSimulation,visGetPositions
  • to vis.js 4.12.0 : new color option for shadows

visNetwork 0.2.0

  • introduce visNetworkProxy object for update & call method from shiny
  • fix bug placement for edges legend (sorry for that...!)
  • fix selectedBy with numeric values
  • introduce new options : can select initial value using 'selectedBy' and 'nodesIdSelection' (selected), set HTML style (style) and add subset on data (values)
  • introduce new shiny return when using manipulation = TRUE
  • to vis.js 4.11.0

visNetwork 0.1.2

  • new custom option : selectedBy, to add a selection on some nodes column
  • new option for highlightNearest : can now choose the degree of depth
  • to vis.js 4.9.0 Have a look to vis.js history !
  • fix visDocumentation for use RStudio and RStudio server viewer
  • new function visLegend for more custom legend on nodes and edges
  • use jsonlite rather rjson in case of gephi json file

visNetwork 0.1.1

  • add font-awesome icons possibilities. See ?addFontAwesome
  • fix multiple network resize bug in shiny
  • to vis.js 4.8.2. Have a look to vis.js history !

visNetwork 0.1.0

  • ready for CRAN submission

visNetwork 0.0.4

  • remove bootstrap dependance
  • move to vis.js 4.4.0 so, a lot of changes...
    • new visConfigure function
    • new visInteraction function
    • new visLayout function
    • remove visTooltip
    • move and rename argument as vis.js change...
    • initialize some clustering function....
    • ....

visNetwork 0.0.3

  • add shiny interaction when use nodesIdSelection

visNetwork 0.0.2

  • Move highlight.nearest argument from visNetwork to visOptions, and rename as highlightNearest
  • Move id.selection argument from visNetwork to visOptions, and rename as nodesIdSelection
  • Move legend.width argument to visNetwork

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.