Description Usage Arguments Value Author(s) See Also Examples
Save the current layout (that is, node positions) to the specified file.
1 | saveLayout(obj, filename, timestamp.in.filename=FALSE)
|
obj |
a |
filename |
a |
timestamp.in.filename |
|
Nothing.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
restoreLayout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('saveLayout.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'force-directed')
saveLayout (cw, 'layout.RData')
layoutNetwork(cw, 'fruchterman-rheingold')
restoreLayout (cw, 'layout.RData')
# you might need to adjust the zoom
saveLayout (cw, 'layout2', timestamp.in.filename=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.