setGraph,RCyjs-method {RCyjs} | R Documentation |
setGraph
Establish a new graph in RCyjs, removing any previous graph
## 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
if(interactive()){ sampleGraph <- simpleDemoGraph() rcy <- RCyjs(title="rcyjs demo") setGraph(rcy, sampleGraph) }