loadStyleFile: loadStyleFile

Description Usage Arguments Value References Examples

Description

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

Usage

1
2
## 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

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

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.