Learn R Programming

RCytoscape (version 1.22.0)

setNodeColorDirect: setNodeColorDirect

Description

In the specified CytoscapeWindow, set the color of the specified node or nodes. This method bypasses the vizmap, and excludes this node, for the duration of the current Cytoscape session, from further manipulation by vizmap color rules.

Usage

setNodeColorDirect(obj, node.names, new.color)

Arguments

obj
a CytoscapeWindowClass object.
node.names
a String list object.
new.color
an String object, using the standard hexadecimal form, eg, '#FF88AA'

Value

None.

See Also

setNodeColorRule

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeColorDirect (cw, 'A', '#880000')
  redraw (cw)

Run the code above in your browser using DataLab