setEdgeSourceArrowOpacityDirect: setEdgeSourceArrowOpacityDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the opacity of the source arrow of the specified edge or edges. Opacity is an integer between 0 (invisible) and 255 (fully rendered).

Usage

1
setEdgeSourceArrowOpacityDirect(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 integer objects, between 0 and 255.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setEdgeTargetArrowOpacityDirect 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
22
23
24
  ## Not run: 
  # WARNING: Method RCy3::setEdgeSourceArrowOpacityDirect() is not implemented in RCy3!

  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

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

  edges.of.interest = as.character (cy2.edge.names (cw@graph))
    # make sure the source arrows are visible
  setEdgeSourceArrowShapeDirect (cw, edges.of.interest, 'Circle')

    # first try passing three edges and three arrow opacity values
  setEdgeSourceArrowOpacityDirect (cw, edges.of.interest, c (64, 128, 255))
  
    # now try passing three edges and one opacity value
  setEdgeSourceArrowOpacityDirect (cw, edges.of.interest, 32)

    # restore the default
  setEdgeSourceArrowOpacityDirect (cw, edges.of.interest, 255)

## End(Not run)

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