setNodeBorderWidthRule: setNodeBorderWidthRule

Description Usage Arguments Value Author(s) See Also Examples

Description

Specify the node attribute which controls the thickness of the node borders displayed in the graph. This is currently only a lookup mapping. An interpolated mapping will be added in the future.

Usage

1
2
setNodeBorderWidthRule(obj, node.attribute.name, attribute.values, line.widths,
                       default.width, vizmap.style.name = 'default')

Arguments

obj

a CytoscapeWindowClass object.

node.attribute.name

the node attribute whose values will determine the width of the node border on each node when this rule is applied.

attribute.values

observed values of the specified attribute on the nodes.

line.widths

the corresponding widths.

default.width

use this where the rule fails to apply

vizmap.style.name

visual style name, defaults to the style 'default'.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeBorderColorRule (detailed example) getVisualstyleNames

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setNodeBorderWidthRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed') 
  node.attribute.values <- c('kinase', 'transcription factor', 'glycoprotein')
  line.widths <- c(0, 8, 16)
  setNodeBorderWidthRule (cw, 'type', node.attribute.values, line.widths)

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.