Learn R Programming

RCy3 (version 1.2.0)

setNodeHeightDirect: setNodeHeightDirect

Description

In the specified CytoscapeWindow, set the height of the specified node(s). Note that the node dimensions (height and width) must be unlocked for this to work. If they ARE locked, then node and height change together, as specified by a node size rule, or the setNodeSizeDirect method.

Usage

setNodeHeightDirect(obj, node.names, new.heights)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one ore more String objects.
new.heights
one or more integers, in pixel units.

Value

None.

See Also

setNodeWidthDirect lockNodeDimensions setNodeSizeDirect setNodeHeightDirect

Examples

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

  cw <- CytoscapeWindow ('setNodeHeightDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  lockNodeDimensions (cw, FALSE)
  setNodeHeightDirect (cw, 'A', 32)
  setNodeHeightDirect (cw, c('A', 'B'), 15)
  setNodeHeightDirect (cw, c('C', 'B'), c(15, 30))

Run the code above in your browser using DataLab