setNodeLabelColorDirect: setNodeLabelColorDirect

Description Usage Arguments Value Author(s) See Also Examples

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
11
12
13
  ## Not run: 
  # 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'))

## End(Not run)

RCy3 documentation built on May 20, 2017, 9:53 p.m.

Search within the RCy3 package
Search all R packages, documentation and source code