Create a cytoscape.js JSON graph from one or two data.frames.
1 | dataFramesToJSON(tbl.edges, tbl.nodes = NULL)
|
tbl.edges |
data.frame, with source, target and interaction columns, others option for edge attributes |
tbl.nodes |
data.frame, options, useful for orphan nodes, and necessary for adding node attributes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.