Description Usage Arguments Details Value See Also Examples
setGraph
Establish a new graph in RCyjs, removing any previous graph
1 2 | ## S4 method for signature 'RCyjs'
setGraph(obj, graph)
|
obj |
RCyjs instance |
graph |
a graphNEL |
This method will remove any previous graph in the browser, adding a new one. Setting visual properties and performing layout must follow.
nothing
1 2 3 4 5 | if(interactive()){
sampleGraph <- simpleDemoGraph()
rcy <- RCyjs(title="rcyjs demo")
setGraph(rcy, sampleGraph)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.