Learn R Programming

RCy3 (version 1.2.0)

setNodeShapeDirect: setNodeShapeDirect

Description

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

Usage

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.

See Also

getNodeShapes

Examples

Run this code
  # 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')

Run the code above in your browser using DataLab