toCytoscape | R Documentation |
Convert igraph to Cytoscape JSON
toCytoscape(igraphobj)
igraphobj |
an igraph object |
a JSON object
From https://github.com/idekerlab/cy-rest-R/blob/17f748426bb5e48ba4075b9d97318ad582b250da/utility/cytoscape_util.R
library(igraph) g <- barabasi.game(20) json <- toCytoscape(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.