Learn R Programming

RCy3 (version 1.2.0)

setDefaultBackgroundColor: setDefaultBackgroundColor

Description

Set the default color for the next CytoscapeWindow.

Usage

setDefaultBackgroundColor(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

A character string, a hexadecimal, e.g. #000000

Examples

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

  cw <- CytoscapeWindow ('setDefaultBackgroundColor.test', graph=makeSimpleGraph())
  setDefaultBackgroundColor (cw, '#CCCC00')
  cw2 <- CytoscapeWindow ('setDefaultBackgroundColor.test2', graph=makeSimpleGraph())

Run the code above in your browser using DataLab