Learn R Programming

RCy3 (version 1.2.0)

setEdgeLabelColorDirect: setEdgeLabelColorDirect

Description

In the specified CytoscapeWindow, set the color of the label of the specified edge or edges.

Usage

setEdgeLabelColorDirect(obj, edge.names, new.value)

Arguments

obj
a CytoscapeWindowClass object.
edge.names
one or more String objects, cy2-style edge names.
new.value
a String object, an RGB color in '#RRGGBB' form.

Value

None.

See Also

setEdgeLabelColorDirect setEdgeLabelDirect setEdgeFontSizeDirect

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setEdgeLabelColorDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  edge.names <- as.character (cy2.edge.names (cw@graph))
  setEdgeLabelDirect (cw, edge.names, 'some label')
  setEdgeLabelColorDirect (cw, edge.names, '#00FF00')
  setEdgeLabelColorDirect (cw, edge.names [1:2], '#FF0000')

Run the code above in your browser using DataLab