Learn R Programming

RCytoscape (version 1.22.0)

hideNodes: hideNodes

Description

Hide (but do not delete) the currently 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
  cw <- new.CytoscapeWindow ('hideNodes.test', graph=makeSimpleGraph())
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  # 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