Learn R Programming

RCy3 (version 1.2.0)

setWindowSize: setWindowSize

Description

Control the size of the CytoscapeWindow by specifying a width and height. On a typical screen, there may be 1200 pixels in the width of a full-size window, and 800 pixels in height.

Usage

setWindowSize(obj, width, height)

Arguments

obj
a CytoscapeWindowClass object.
width
a numeric object.
height
a numeric object.

Value

None.

See Also

getZoom setZoom getCenter setCenter getViewCoordinates fitContent

Examples

Run this code
  # WARNING: Method RCy3::setWindowSize() is not implemented in RCy3!
  
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  window.title = 'setWindowSize demo'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  setWindowSize (cw, 1200, 800)
  fitContent (cw)
  setWindowSize (cw, 120, 80)
  fitContent (cw)
  setWindowSize (cw, 600, 400)
  fitContent (cw)

Run the code above in your browser using DataLab