setGraph,RCyjs-method {RCyjs}R Documentation

setGraph

Description

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

Usage

## 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

if(interactive()){
  sampleGraph <- simpleDemoGraph()
  rcy <- RCyjs(title="rcyjs demo")
  setGraph(rcy, sampleGraph)
  }


[Package RCyjs version 2.16.0 Index]