| saveLayout | R Documentation |
save the current layout (that is, node positions) to the specified file.
saveLayout(obj, filename, timestamp.in.filename=FALSE)
obj |
a |
filename |
a |
timestamp.in.filename |
|
Nothing.
Paul Shannon
restoreLayout
cw <- new.CytoscapeWindow ('saveLayout.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'jgraph-spring')
saveLayout (cw, 'layout.RData')
layoutNetwork(cw, 'jgraph-circle')
restoreLayout (cw, 'layout.RData')
saveLayout (cw, 'layout2', timestamp.in.filename=TRUE)