Learn R Programming

RCytoscape (version 1.22.0)

restoreLayout: restoreLayout

Description

restore the current layout (that is, node positions) from the information saved in the supplied filename.

Usage

restoreLayout(obj, filename)

Arguments

obj
a CytoscapeWindowClass object.
filename
a string

Value

Nothing.

See Also

saveLayout

Examples

Run this code
  cw <- new.CytoscapeWindow ('restoreLayout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'jgraph-spring')
  saveLayout (cw, 'layout.RData')
  layoutNetwork(cw, 'jgraph-circle')
  restoreLayout (cw, 'layout.RData')

Run the code above in your browser using DataLab