Learn R Programming

RCy3 (version 1.2.0)

setDefaultNodeFontSize: setDefaultNodeFontSize

Description

In the specified CytoscapeWindow, stipulate the default font size for all nodes other than those mentioned in a node font size rule.

Usage

setDefaultNodeFontSize(obj, new.size, vizmap.style.name = "default")

Arguments

obj
a CytoscapeConnectionClass object.
new.size
an integer.
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 ('setDefaultNodeFontSize.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork(cw, 'force-directed')
  setDefaultNodeFontSize (cw, 32)
  # redraw (cw) --> not required anymore

Run the code above in your browser using DataLab