Learn R Programming

RCytoscape (version 1.22.0)

lockNodeDimensions: lockNodeDimensions

Description

Select the specified nodes.

Usage

lockNodeDimensions(obj, new.state, visual.style.name='default')

Arguments

obj
a CytoscapeConnectionClass object.
new.state
a boolean object, TRUE or FALSE
visual.style.name
a string object, naming the visual style whose 'locked' you wish to change. Defaults to 'default'

Value

None.

See Also

setNodeSizeDirect setNodeWidthDirect setNodeHeightDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('lockNodeDimensions demo', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw)
  redraw (cw)
  lockNodeDimensions (cw, FALSE)
  setNodeWidthDirect (cw, 'A', 100)
  setNodeHeightDirect (cw, 'A', 50)

Run the code above in your browser using DataLab