setNodeLabelDirect

Share:

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
  # 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'))

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