Learn R Programming

RCy3 (version 1.2.0)

fitSelectedContent: fitSelectedContent

Description

Using all of the available window (the Cytoscape drawing canvas) display the current graph.

Usage

fitSelectedContent(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

None.

See Also

setZoom fitContent

Examples

Run this code
  #WARNING: function currently not supported

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

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

Run the code above in your browser using DataLab