setNodeShapeDirect: setNodeShapeDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the shape of the specified node(s).

Usage

1
setNodeShapeDirect(obj, node.names, new.shapes)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

new.shapes

one or more String objects, each of the allowed values returned by getNodeShape.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getNodeShapes

Examples

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

  cw <- CytoscapeWindow ('setNodeShapeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'grid')
  getNodeShapes (cw)
  setNodeShapeDirect (cw, 'A', 'TRIANGLE')
  setNodeShapeDirect (cw, c('B', 'C'), getNodeShapes(cw)[2:3])
  setNodeShapeDirect (cw, c('A', 'B', 'C'), 'PARALLELOGRAM')

## End(Not run)


Search within the RCy3 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.