setNodeHeightDirect: setNodeHeightDirect

Description Usage Arguments Value Author(s) See Also Examples

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

1
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.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeWidthDirect lockNodeDimensions setNodeSizeDirect setNodeHeightDirect

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  ## Not run: 
  # 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))

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.