exportCyjs | R Documentation |
Export Cytoscape.js from the network
exportCyjs(g, rootDir, netDir, bubble = FALSE, withEdge = TRUE)
g |
igraph object |
rootDir |
root directory path |
netDir |
directory to store scripts |
bubble |
default to FALSE, if node attribute "group" is available, use the grouping to draw bubblesets using 'https://github.com/upsetjs/cytoscape.js-bubblesets' |
withEdge |
connect edges or not in bubblesets |
Export Cytoscape.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: exportCyjs(g, "./", "net")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.