Description Usage Arguments Value Author(s) See Also Examples
This method expands or contracts the relative size of the objects (the graph) displayed in 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.
1 | setZoom(obj, new.level)
|
obj |
a |
new.level |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
getZoom getCenter setCenter getViewCoordinates fitContent
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
window.title = 'setZoom demo'
cw <- CytoscapeWindow (window.title, graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'force-directed')
setZoom (cw, 0.3)
system ('sleep 0.3')
setZoom (cw, 3.0)
system ('sleep 0.3')
setZoom (cw, 1.0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.