setNodeLabelColorDirect

Description

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

Usage

1
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.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  # 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'))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.