Learn R Programming

RCy3 (version 1.2.0)

redraw: redraw

Description

Ask Cytoscape to redraw all nodes and edges, applying the vizmap rules.

Usage

redraw(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

None.

See Also

displayGraph layoutNetwork

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('redraw.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  redraw (cw)  # applies default vizmap (rendering) rules, plus any you
               # have specified

Run the code above in your browser using DataLab