loadStyleFile,RCyjs-method {RCyjs} | R Documentation

## loadStyleFile

### Description

`loadStyleFile` load a named JSON cytoscape.js style file into the browser

### Usage

    ## S4 method for signature 'RCyjs'
    loadStyleFile(obj, filename)

### Arguments

`obj` | an RCyjs instance
`filename` | contains json in the proper cytoscape.js format

### Value

nothing

### References

https://js.cytoscape.org/#style

Though we provide access to individual styling rules (see below) we often find it convenient to express all aspects of a visual style in a single JSON file

### Examples

    if(interactive()){
      rcy <- demo()
      filename <- system.file(package="RCyjs", "extdata", "sampleStyle1.js");
      loadStyleFile(rcy, filename)
      }

[Package RCyjs version 2.4.0 Index]