getNodePosition: getNodePosition

Description Usage Arguments Value Author(s) Examples

Description

Get the position of the specified nodes on the CytoscapeWindow canvas. Useful in retrieving the current position of nodes in the window.

Usage

1
getNodePosition(obj, node.names)

Arguments

obj

a CytoscapeWindowClass object.

node.names

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

Value

A names list of x,y pairs; names are the identifiers of nodes supplied when the graph was created.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

Examples

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

  cw <- CytoscapeWindow ('getNodePosition.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  getNodePosition (cw, c ('A', 'B', 'C'))

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.