Learn R Programming

RCytoscape (version 1.22.0)

setDefaultEdgeLineWidth: setDefaultEdgeLineWidth

Description

In the specified CytoscapeConnection, stipulate the line width, in pixels for all edges.

Usage

setDefaultEdgeLineWidth(obj, new.width, vizmap.style.name = "default")

Arguments

obj
a CytoscapeConnectionClass object.
new.width
an integer object, typically from 0 to 5.
vizmap.style.name
a String object.

Value

None.

See Also

setDefaultNodeShape setDefaultNodeColor setDefaultNodeSize setDefaultNodeColor setDefaultNodeBorderColor setDefaultNodeBorderWidth setDefaultNodeFontSize setDefaultNodeLabelColor setEdgeColorRule

Examples

Run this code
  cw <- new.CytoscapeWindow ('setDefaultEdgeLineWidth.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setDefaultEdgeLineWidth (cw, 5) 
  redraw (cw)

Run the code above in your browser using DataLab