Learn R Programming

RCy3 (version 1.2.0)

setDefaultNodeSelectionColor: setDefaultNodeSelectionColor

Description

Retrieve the default color used to display selected nodes.

Usage

setDefaultNodeSelectionColor(obj, new.color, vizmap.style.name)

Arguments

obj
a CytoscapeConnectionClass object.
new.color
a character object, in quoted hexadecimal format
vizmap.style.name
a character object, 'default' by default

Value

Nothing.

Examples

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

  cw <- CytoscapeWindow ("demo.setDefaultNodeSelectionColor", graph=makeSimpleGraph ())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  setDefaultNodeSelectionColor (cw, '##FFFF00') # yellow
  # redraw (cw) --> not required anymore

Run the code above in your browser using DataLab