setNodePosition: setNodePosition

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the position of the specified nodes on the CytoscapeWindow canvas. Use this for any hand-crafted layouts, or novel layout algorithms, you wish to use.

Usage

1
setNodePosition(obj, node.names, x.coords, y.coords)

Arguments

obj

a CytoscapeWindowClass object.

node.names

a list of strings, the names of nodes to select.

x.coords

a list of floating point numbers, one for each node in the node.names list.

y.coords

a list of floating point numbers, one for each node in the node.names list.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getNodePosition

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setNodePosition.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  setNodePosition (cw, c ('A', 'B', 'C'), c (10.0, 20.0, 500), c (0.0,
               100.0, 3))  

## End(Not run)

RCy3 documentation built on May 31, 2017, 11:49 a.m.