Learn R Programming

RCytoscape (version 1.22.0)

setNodeFontSizeDirect: setNodeFontSizeDirect

Description

In the specified CytoscapeWindow, set the size of the font used in rendering the label of the specified node.

Usage

setNodeFontSizeDirect(obj, node.names, new.sizes)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
new.sizes
an integer, in pixel units.

Value

None.

See Also

setNodeWidthDirect setNodeHeightDirect setNodeSizeDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeFontSizeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeFontSizeDirect (cw, 'A', 32)
  redraw (cw)

Run the code above in your browser using DataLab