Learn R Programming

RCytoscape (version 1.22.0)

setNodeShapeDirect: setNodeShapeDirect

Description

In the specified CytoscapeWindow, set the shape of the specified node.

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, one of the allowed values returned by getNodeShape.

Value

None.

See Also

getNodeShapes

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeShapeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  getNodeShapes(cw)
  setNodeShapeDirect (cw, 'A', 'triangle')
  redraw (cw)

Run the code above in your browser using DataLab