Learn R Programming

RCy3 (version 1.2.0)

setDefaultEdgeLineWidth: setDefaultEdgeLineWidth

Description

In the specified CytoscapeConnection, stipulate the default 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
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setDefaultEdgeLineWidth.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  setDefaultEdgeLineWidth (cw, 5) 
  #redraw (cw)

Run the code above in your browser using DataLab