Learn R Programming

RCy3 (version 1.2.0)

fitContent: fitContent

Description

Display the current graph using all of the available window (the Cytoscape drawing canvas).

Usage

fitContent(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

None.

See Also

setZoom fitSelectedContent

Examples

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

  cw <- CytoscapeWindow ('fitContent.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  setZoom (cw, 0.1)
  fitContent (cw)
  setZoom (cw, 10.0)
  fitContent (cw)

Run the code above in your browser using DataLab