Learn R Programming

RCy3 (version 1.2.0)

setNodeOpacityDirect: setNodeOpacityDirect

Description

In the specified CytoscapeWindow, set the opacity of all aspectes of the specified node(s): 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
one or more numeric objects, ranging from 0 to 255.

Value

None.

See Also

setNodeFillOpacityDirect setNodeLabelOpacityDirect setNodeBorderOpacityDirect

Examples

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

  cw <- CytoscapeWindow ('setNodeOpacityDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setDefaultNodeBorderWidth (cw, 4)
  setDefaultNodeBorderColor(cw, '#0000FF')
  
  setNodeOpacityDirect (cw, 'A', 20)
  setNodeOpacityDirect (cw, c('B', 'C'), c(111, 133))
  setNodeOpacityDirect (cw, c('B', 'C'), 10)

Run the code above in your browser using DataLab