Learn R Programming

RCy3 (version 1.2.0)

setDefaultNodeBorderColor: setDefaultNodeBorderColor

Description

In the specified CytoscapeConnection, stipulate the default color for all node borders other than those mentioned in a node border color rule.

Usage

setDefaultNodeBorderColor(obj, new.color, vizmap.style.name = "default")

Arguments

obj
a CytoscapeConnectionClass object.
new.color
a String object, a hex string, of the form '#RRGGBB'.
vizmap.style.name
a String object.

Value

None.

See Also

setDefaultNodeShape setDefaultNodeColor setDefaultNodeSize setDefaultNodeColor setDefaultNodeBorderColor setDefaultNodeBorderWidth setDefaultNodeFontSize setDefaultNodeLabelColor setDefaultEdgeLineWidth setEdgeColorRule setNodeBorderColorRule

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setDefaultNodeBorderColor.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  setDefaultNodeBorderWidth (cw, 4)
  setDefaultNodeBorderColor (cw, '#000000') # white borders
  # redraw (cw) --> not required anymore

Run the code above in your browser using DataLab