exportVisjs | R Documentation |
Export vis.js from the network
exportVisjs(g, rootDir, netDir)
g |
igraph object |
rootDir |
root directory path |
netDir |
directory to store scripts |
Export vis.js script, HTML and stylesheet for the graph and image
return nothing, export to a specified directory
library(igraph)
g <- graph_from_literal( ME1-+ME2 )
V(g)$image <- c("path1","path2")
V(g)$shape <- c("image","image")
V(g)$size <- c(1,1)
## Not run: exportVisjs(g, "./", "net")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.