setNodeColorDirect | R Documentation |
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.
setNodeColorDirect(obj, node.names, new.color)
obj |
a CytoscapeWindowClass object. |
node.names |
a String list object. |
new.color |
an String object, using the standard
hexadecimal form, eg, '#FF88AA' |
None.
Paul Shannon
setNodeColorRule
cw <- new.CytoscapeWindow ('setNodeColorDirect.test', graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork (cw, 'jgraph-spring') setNodeColorDirect (cw, 'A', '#880000') redraw (cw)