Description Usage Arguments Value Author(s) See Also Examples
Specify how data attributes – for the specified named attribute – are mapped to the target arrow type.
1 2  | setEdgeTargetArrowRule(obj, edge.attribute.name, attribute.values, arrows,
                       default='ARROW', vizmap.style.name = 'default')
 | 
obj | 
 a   | 
edge.attribute.name | 
 the edge attribute whose values will determine the target arrow of each edge when this rule is applied.  | 
attribute.values | 
 A list of scalar, discrete values. For instance, interaction types:'phosphorylates', 'ubiquinates', 'represses', 'activates'  | 
arrows | 
 One arrow type for each of the attribute.values  | 
default | 
 The arrow type to use when an explicit mapping is not provided.  | 
vizmap.style.name | 
 visual style name, defaults to the style 'default'.  | 
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
getArrowShapes
setNodeBorderColorRule (detailed example)
setEdgeColorRule
1 2 3 4 5 6 7 8 9 10 11 12 13 14  |   ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())
  cw <- CytoscapeWindow ('setEdgeTargetArrowRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  
  arrows <- c('DIAMOND', 'ARROW', 'CIRCLE')
  edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
  
  setEdgeTargetArrowRule (cw, 'edgeType', edgeType.values, arrows)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.