restoreLayout: restoreLayout

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
restoreLayout(obj, filename)

Arguments

obj

a CytoscapeWindowClass object.

filename

a string

Value

Nothing.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

saveLayout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('restoreLayout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  saveLayout (cw, 'layout.RData')
  layoutNetwork(cw, 'isom')
  restoreLayout (cw, 'layout.RData')
  # you might need to adjust the zoom

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.