getPosition | R Documentation |
Get the position of the specified nodes on the CytoscapeWindow canvas. Useful in retrieving the current position of nodes in the window.
getPosition(obj, node.names)
obj |
a CytoscapeWindowClass object. |
node.names |
a list of strings, the names of nodes to select. |
A names list of x,y pairs; names are the identifiers of nodes supplied when the graph was created.
Paul Shannon
cw <- new.CytoscapeWindow ('getPosition.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork (cw) getPosition (cw, c ('A', 'B', 'C'))