setNodeShapeDirect

Share:

Description

In the specified CytoscapeWindow, set the shape of the specified node(s).

Usage

1
setNodeShapeDirect(obj, node.names, new.shapes)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

new.shapes

one or more String objects, each of the allowed values returned by getNodeShape.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getNodeShapes

Examples

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

  cw <- CytoscapeWindow ('setNodeShapeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'grid')
  getNodeShapes (cw)
  setNodeShapeDirect (cw, 'A', 'TRIANGLE')
  setNodeShapeDirect (cw, c('B', 'C'), getNodeShapes(cw)[2:3])
  setNodeShapeDirect (cw, c('A', 'B', 'C'), 'PARALLELOGRAM')

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