setNodeSizeDirect

Description

In the specified CytoscapeWindow, set the size of the specified node(s). Note that the node dimensions (height and width) must be unlocked for this to work. Node height and width change together.

Usage

1
setNodeSizeDirect(obj, node.names, new.sizes)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

new.sizes

one or more integers, in pixel units.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

lockNodeDimensions setNodeWidthDirect setNodeHeightDirect

Examples

1
2
3
4
5
6
7
8
9
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setNodeSizeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'grid')
  setNodeSizeDirect (cw, 'A', 32)
  setNodeSizeDirect (cw, getAllNodes(cw), 15)
  setNodeSizeDirect (cw, c('A', 'B'), c(30, 40))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.