setNodeLabelDirect: setNodeLabelDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the labels of the specified node(s).

Usage

1
setNodeLabelDirect(obj, node.names, new.labels)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

new.labels

one or more String objects. If just one, then this is replicated for each of the supplied node.names.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setNodeLabelDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setNodeLabelDirect (cw, 'A', 'A new, very long label')
  setNodeLabelDirect (cw, c('B', 'C'), 'Some node')
  setNodeLabelDirect (cw, c('B', 'C'), c('node B', 'node C'))

## End(Not run)

RCy3 documentation built on May 31, 2017, 11:49 a.m.

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