Learn R Programming

RCytoscape (version 1.22.0)

saveLayout: 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.

See Also

restoreLayout

Examples

Run this code
  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)

Run the code above in your browser using DataLab