Framework for creating Shiny applications for network visualization using D3.js JavaScript library.
You can download d3net
package at https://github.com/mbojan/d3net. To install it:
Install the release version of devtools
from CRAN with install.packages("devtools")
.
Follow the instructions below depending on platform.
Mac and Linux:
R
devtools::install_github("mbojan/d3net")
Windows:
```R library(devtools) build_github_devtools()
install.packages("d3net.zip", repos = NULL)
unlink("d3net.zip") ```
Currently methods are implemented for objects of class "igraph", "network" and "networkDynamic".
To launch application:
library(d3net)
d3net(dataset)
where dataset
is R igraph, network or networkDynamic object
To launch examples, use the example datasets provided for each object type.
igraph
library(igraphdata)
data(karate)
d3net(karate)
network
library(network)
data(flo)
#create network object from sample data
nflo <- network(flo, directed = FALSE)
d3net(nflo)
networkDynamic
library(networkDynamicData)
data(harry_potter_support)
d3net(harry_potter_support)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.