Description Usage Arguments Value References Examples
loadStyleFile
load a named JSON cytoscape.js style file into the browser
1 2 | ## S4 method for signature 'RCyjs'
loadStyleFile(obj, filename)
|
obj |
an RCyjs instance |
filename |
contains json in the proper cytoscape.js format |
nothing
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
1 2 3 4 5 | if(interactive()){
rcy <- demo()
filename <- system.file(package="RCyjs", "extdata", "sampleStyle1.js");
loadStyleFile(rcy, filename)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.