setDefaultNodeShape: setDefaultNodeShape

Description Usage Arguments Value Author(s) See Also Examples

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)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.