setEdgeTargetArrowShapeDirect: setEdgeTargetArrowShapeDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the target arrow shape of the specified edge or edges, using one of the supported shapes.

Usage

1
setEdgeTargetArrowShapeDirect(obj, edge.names, new.values)

Arguments

obj

a CytoscapeWindowClass object.

edge.names

one or more cy2-style edge names, String objects.

new.values

one or more String objects, from the supported set.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getArrowShapes setDefaultEdgeSourceArrowColor setEdgeSourceArrowColorDirect setEdgeSourceArrowColorRule setEdgeSourceArrowRule setEdgeSourceArrowShapeDirect setEdgeTargetArrowColorDirect setEdgeTargetArrowColorRule setEdgeTargetArrowRule setEdgeTargetArrowShapeDirect setDefaultEdgeTargetArrowColor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setEdgeTargetArrowShapeDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')

  edges.of.interest <- as.character (cy2.edge.names (cw@graph))
  supported.arrow.shapes <- getArrowShapes (cw)

    # first try passing three edges and three arrow shapes
  setEdgeTargetArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [2:4])

    # now try passing three edges and one arrow.shapes
  setEdgeTargetArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [6])

    # restore the default
  setEdgeTargetArrowShapeDirect (cw, edges.of.interest, 'NONE')

## End(Not run)

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