setGraph: setGraph

Description Usage Arguments Details Value See Also Examples

Description

setGraph Establish a new graph in RCyjs, removing any previous graph

Usage

1
2
## S4 method for signature 'RCyjs'
setGraph(obj, graph)

Arguments

obj

RCyjs instance

graph

a graphNEL

Details

This method will remove any previous graph in the browser, adding a new one. Setting visual properties and performing layout must follow.

Value

nothing

See Also

addGraph

Examples

1
2
3
4
5
if(interactive()){
  sampleGraph <- simpleDemoGraph()
  rcy <- RCyjs(title="rcyjs demo")
  setGraph(rcy, sampleGraph)
  }

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.