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='jgraph-spring')

Arguments

obj

a CytoscapeWindowClass object.

layout.name

a string, one of the values returned by getLayoutNames, 'jgraph-spring' by default.

Value

Nothing.

Author(s)

Paul Shannon

See Also

getNodeShapes

Examples

1
2
3
4
5
  cw <- new.CytoscapeWindow ('layout.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'jgraph-spring')
  redraw (cw)  # applies default vizmap (rendering) rules, plus any you
               # have specified

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