Learn R Programming

RCy3 (version 1.2.0)

setNodeLabelColorDirect: setNodeLabelColorDirect

Description

In the specified CytoscapeWindow, set the color of the font used in rendering the label of the specified node(s).

Usage

setNodeLabelColorDirect(obj, node.names, new.colors)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
new.colors
one or more String, specifying the color using standard hex notation.

Value

None.

See Also

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

Examples

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

  cw <- CytoscapeWindow ('setNodeLabelColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setNodeFontSizeDirect (cw, getAllNodes(cw), 50)
  setNodeLabelColorDirect (cw, 'A', '#FFFF00')
  setNodeLabelColorDirect (cw, c('B', 'C'), '#AA00AA')
  setNodeLabelColorDirect (cw, c('B', 'C'), c('#FF0AAA', '#AAFFAA'))

Run the code above in your browser using DataLab