Learn R Programming

RCy3 (version 1.2.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.colors)

Arguments

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

Value

None.

See Also

setNodeColorRule setNodeBorderColorDirect setNodeBorderOpacityDirect setNodeBorderWidthDirect setNodeColorDirect setNodeFillOpacityDirect setNodeFontSizeDirect setNodeHeightDirect setNodeImageDirect setNodeLabelColorDirect setNodeLabelDirect setNodeLabelOpacityDirect setNodeOpacityDirect setNodeShapeDirect setNodeSizeDirect setNodeWidthDirect

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setNodeColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setNodeColorDirect (cw, 'A', '#880000')
  setNodeColorDirect (cw, c('A', 'C'), c('#88FF00', '#880000'))

Run the code above in your browser using DataLab