Learn R Programming

RCy3 (version 1.2.0)

setEdgeTooltipRule: setEdgeTooltipRule

Description

Specify the edge attribute to be used as the tooltip for each edge. Non-character attributes are converted to strings before they are used as tooltips.

Usage

setEdgeTooltipRule(obj, edge.attribute.name)

Arguments

obj
a CytoscapeWindowClass object.
edge.attribute.name
the edge attribute whose values will determine the tooltip on each edge when this rule is applied.

Value

None.

See Also

setEdgeTooltipDirect

Examples

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

  cw <- CytoscapeWindow ('setEdgeTooltipRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setEdgeTooltipRule (cw, 'edgeType')

Run the code above in your browser using DataLab