layoutNetwork: layoutNetwork

Description Usage Arguments Value Author(s) See Also Examples

Description

Layout the current graph according to the specified algorithm.

Usage

1
layoutNetwork(obj, layout.name='grid')

Arguments

obj

a CytoscapeWindowClass object.

layout.name

a string, one of the values returned by getLayoutNames, 'grid' by default.

Value

Nothing.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getLayoutNameMapping getLayoutNames restoreLayout 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 ('layout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  possible.layout.names <- getLayoutNames(cw)
  # choose one of the layouts e.g.:
  layoutNetwork (cw, possible.layout.names[1])
  # or:
  layoutNetwork (cw, 'force-directed')

## End(Not run)

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