Description Usage Arguments Value Author(s) See Also Examples
Specify the edge attribute which controls the thickness of the edges displayed in the graph. This is currently only a lookup mapping. An interpolated mapping will be added in the future.
1 2 | setEdgeLineWidthRule(obj, edge.attribute.name, attribute.values, line.widths,
default.width, vizmap.style.name = 'default')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will, when this rule is applied, determine the edgeLineWidth on each edge. |
attribute.values |
observed values of the specified attribute on the edges. |
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'. |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setNodeBorderColorRule (detailed example) setEdgeColorRule
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 ('setEdgeLineWidthRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
edge.attribute.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
line.widths <- c(0, 8, 16)
setEdgeLineWidthRule (cw, 'edgeType', edge.attribute.values, line.widths)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.