saveLayoutR Documentation

saveLayout

Description

save the current layout (that is, node positions) to the specified file.

Usage

saveLayout(obj, filename, timestamp.in.filename=FALSE)

Arguments

obj

a CytoscapeWindowClass object.

filename

a string.

timestamp.in.filename

logical.

Value

Nothing.

Author(s)

Paul Shannon

See Also

restoreLayout

Examples

  cw <- new.CytoscapeWindow ('saveLayout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'jgraph-spring')
  saveLayout (cw, 'layout.RData')
  layoutNetwork(cw, 'jgraph-circle')
  restoreLayout (cw, 'layout.RData')
  saveLayout (cw, 'layout2', timestamp.in.filename=TRUE)