Description Usage Arguments Value Author(s) See Also Examples
Specify the edge attribute to be used as the label displayed on each edge. Non-character attributes are converted to strings before they are used.
1 | setEdgeLabelRule(obj, edge.attribute.name, vizmap.style.name = 'default')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will determine the edge label on each edge, when this rule is applied. |
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 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setEdgeLabelRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
setEdgeLabelRule (cw, 'edgeType')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.