Learn R Programming

RCytoscape (version 1.22.0)

setNodeOpacityDirect: setNodeOpacityDirect

Description

In the specified CytoscapeWindow, set the opacity of all aspectes of the specified node: fill color, border, label.

Usage

setNodeOpacityDirect(obj, node.names, new.values)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
new.values
a numeric object, one or more, ranging from 0 to 255.

Value

None.

See Also

setNodeFillOpacityDirect setNodeLabelOpacityDirect setNodeBorderOpacityDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeOpacityDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeOpacityDirect (cw, 'A', 220)
  redraw (cw)

Run the code above in your browser using DataLab