setNodeImageDirect: setNodeImageDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the images of the specified nodes.

Usage

1
setNodeImageDirect(obj, node.names, image.positions)

Arguments

obj

a CytoscapeWindowClass object.

node.names

one or more String objects.

image.positions

one or more int objects, specifying the position of the image in the Image Manager. If just one, then this is replicated for each of the supplied node.names.

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setNodeShapeDirect

Examples

 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 ('setNodeImageDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  # Before running the next function, upload your image to the Image Manager
  # and determine the position of the image in the list (start counting from the bottom)
  # Images are added at the top of the interface but at the end of the list
  # There are currently 24 default images in the Image Manager
  setNodeImageDirect (cw, 'C', 1 ) # last image in the Image Manager

## End(Not run)

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