Learn R Programming

RCytoscape (version 1.22.0)

layoutNetwork: layoutNetwork

Description

Layout the current graph according to the specified algorithm.

Usage

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.

See Also

getNodeShapes

Examples

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

Run the code above in your browser using DataLab