restoreLayoutR Documentation

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.

Author(s)

Paul Shannon

See Also

saveLayout

Examples

  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')