setNodeColorDirect: setNodeColorDirect

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

1
2
3
4
5
6
  cw <- new.CytoscapeWindow ('setNodeColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeColorDirect (cw, 'A', '#880000')
  redraw (cw)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.