addGraphFromFile,RCyjs-method {RCyjs} | R Documentation

## addGraphFromFile

### Description

`addGraphFromFile` add graph from specified file, which contains a cytoscape.js JSON graph

### Usage

    ## S4 method for signature 'RCyjs'
    addGraphFromFile(obj, jsonFileName)

### Arguments

`obj` | an RCyjs instance
`jsonFileName` | path to the file

### Details

More description

### Value

nothin

### Examples

    if(interactive()){
      rcy <- RCyjs()
      filename <- system.file(package="RCyjs", "extdata", "sampleGraph.json")
      addGraphFromFile(rcy, filename)
      layout(rcy, "cose")
      fit(rcy, 200)
      }

[Package RCyjs version 2.12.0 Index]