Learn R Programming

RCy3 (version 1.2.0)

getZoom: getZoom

Description

This method returns the zoom level of the CytoscapeWindow. A value of 1.0 typically renders the graph with an ample margin. A call to fitContent produces a zoom level of about 1.5.

Usage

getZoom(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

A names list, x and y.

See Also

setZoom getCenter setCenter getViewCoordinates fitContent

Examples

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

  window.title = 'getZoom demo'
  cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  print (getZoom (cw))

Run the code above in your browser using DataLab