Learn R Programming

RCy3 (version 1.2.0)

displayGraph: displayGraph

Description

This method transmits the CytoscapeWindowClass's graph data, from R to Cytoscape: nodes, edges, node and edge attributes, and displays it in a window titled as specified by the objects 'title' slot. With large graphs, this transmission may take a while. The resulting view of the network in Cytoscape will need layout and vizmap rendering; layout so that all the nodes and edges can be seen; rendering so that data attributes can control the appearance of the the nodes and edges.

Usage

displayGraph(obj)

Arguments

obj
a CytoscapeWindowClass object.

Value

Nothing.

Examples

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

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

Run the code above in your browser using DataLab