Learn R Programming

RCytoscape (version 1.22.0)

setNodeLabelColorDirect: setNodeLabelColorDirect

Description

In the specified CytoscapeWindow, set the size of the font used in rendering the label of the specified node.

Usage

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

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
new.colors
an string, using standard hex notation.

Value

None.

See Also

setNodeFontSizeDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeLabelColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeFontSizeDirect (cw, 'A', 50)
  setNodeLabelColorDirect (cw, 'A', '#FFFF00')
  redraw (cw)

Run the code above in your browser using DataLab