Learn R Programming

RCy3 (version 1.2.0)

hideNodes: hideNodes

Description

Hide (but do not delete) nodes. Highly recommended: save the current layout before hiding, since 'unhideAll' will, in addition to restoring hidden nodes to view, will place then in unpredictable locations on the screen.

Usage

hideNodes(obj, node.names)

Arguments

obj
a CytoscapeWindowClass object.
node.names
a character list object.

Value

None.

See Also

hideSelectedNodes unhideAll saveLayout restoreLayout

Examples

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

  cw <- CytoscapeWindow ('hideNodes.test', graph=makeSimpleGraph())
  displayGraph(cw)
  redraw (cw)
  layoutNetwork(cw, 'force-directed')
  saveLayout (cw, 'layout.tmp.RData')
  hideNodes (cw, c ('A', 'B'))
  unhideAll (cw)
  restoreLayout (cw, 'layout.tmp.RData')

Run the code above in your browser using DataLab