saveLayout: saveLayout

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
  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)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.