setDefaultNodeShape

Share:

Description

For all CytoscapeWindow's, specify the default node shape.

Usage

1
setDefaultNodeShape(obj, new.shape, vizmap.style.name = "default")

Arguments

obj

a CytoscapeConnectionClass object.

new.shape

a String object, one of the permissible values (see getNodeShapes).

vizmap.style.name

a String object.

Value

None.

Author(s)

Paul Shannon

See Also

getNodeShapes setDefaultNodeShape setDefaultNodeColor setDefaultNodeSize setDefaultNodeColor setDefaultNodeBorderColor setDefaultNodeBorderWidth setDefaultNodeFontSize setDefaultNodeLabelColor setDefaultEdgeLineWidth setEdgeColorRule setNodeBorderColorRule

Examples

1
2
3
4
5
6
7
8
  cw <- new.CytoscapeWindow ('setDefaultNodeShape.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  legal.shapes <- getNodeShapes (cw)
  # stopifnot ('diamond' %in% legal.shapes)
  setDefaultNodeShape (cw, 'diamond')
  redraw (cw)

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