exportCyjsWithoutImage | R Documentation |
Export Cytoscape.js from the network without images
exportCyjsWithoutImage(
g,
rootDir,
netDir,
edgeWidth = "weight",
nodeColor = "tag",
nodeSize = "Freq",
nodeColorDiscretePal = "RdBu",
sizeMin = 10,
sizeMax = 50
)
g |
igraph object |
rootDir |
root directory path |
netDir |
directory to store scripts |
edgeWidth |
attribute name for edgeWidth |
nodeColor |
attribute name for node color |
nodeSize |
attribute name for node size |
nodeColorDiscretePal |
color mapping palette for discrete variables |
sizeMin |
minimum size for scaling node size |
sizeMax |
maximum size for scaling node size |
Export Cytoscape.js script, HTML and stylesheet for the graph without image
return nothing, export to a specified directory
library(igraph)
g <- graph_from_literal( ME1-+ME2 )
V(g)$size <- c(1,1)
## Not run: exportCyjsWithoutImage(g, "./", "net")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.