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
1.0.4
dev version
-
Add support for edges color/label usinghighlightNearest/selectedBy
-
New proxy methods :visGetBoundingBox
,visGetConnectedEdges
,visGetConnectedNodes
,visGetEdges
,visGetNodes
,visGetPositions
,visGetScale
,visGetSelectedEdges
,visGetSelectedNodes
,visGetSelection
,visGetViewPosition
-
initvisTree
, to visualize rpart object
1.0.3
available on CRAN
-
NewhideColor
argument to control hidden nodes & edges usinghighlightNearest/selectedBy
-
Addpdf export
-
NewvisNearestNodes
function -
Store positions of nodes before rendering withvisGetNodes
-
Add delay on tooltip popup (so you can click on a link...!)
1.0.2
available on CRAN
-
Update network in shiny usingvisNetworkProxy
(lot of functionalities,?visNetworkProxy
) -
EnabledhighlightNearest
&selectedBy
withicons
and / orimage
-
Enabled hover forhighlightNearest
and fix/improve performance with highdegree
-
multiple groups selection / title to network & legend / ionicons icons possibilities. See ?addIonicons
-
new functionvisSave
to save as html andvisExport
to save as png/jpeg (shiny and browser only) -
Better performance withvisIgraphLayout
-
have a look tovisIgraph
to plot visNetwork object from igraph object (Little bit experimental) -
Add custom legend withvisLegend
Example
install.packages("visNetwork")
# devtools::install_github("datastorm-open/visNetwork") for developpement 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"))