Learn R Programming

RCytoscape (version 1.22.0)

setNodeLabelDirect: setNodeLabelDirect

Description

In the specified CytoscapeWindow, set the labels of the specified nodes.

Usage

setNodeLabelDirect(obj, node.names, new.labels)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
new.labels
one or more String objects. If just one, then this is replicated for each of the supplied node.names.

Value

None.

See Also

setNodeShapeDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeLabelDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeLabelDirect (cw, 'A', 'A new, very long label')
  redraw (cw)

Run the code above in your browser using DataLab