Learn R Programming

RCytoscape (version 1.22.0)

setNodeImageDirect: setNodeImageDirect

Description

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

Usage

setNodeImageDirect(obj, node.names, image.urls)

Arguments

obj
a CytoscapeWindowClass object.
node.names
one or more String objects.
image.urls
one or more String objects. If just one, then this is replicated for each of the supplied node.names.

Value

None.

See Also

setNodeShapeDirect

Examples

Run this code
  cw <- new.CytoscapeWindow ('setNodeImageDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw, 'jgraph-spring')
  setNodeImageDirect (cw, 'C', 'http://rcytoscape.systemsbiology.net/versions/current/images/bioc.png')
  redraw (cw)

Run the code above in your browser using DataLab