setNodeColorDirectR Documentation

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.

Author(s)

Paul Shannon

See Also

setNodeColorRule

Examples

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