loadStyleFile,RCyjs-method {RCyjs} | R Documentation |
loadStyleFile
load a named JSON cytoscape.js style file into the browser
## 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
if(interactive()){ rcy <- demo() filename <- system.file(package="RCyjs", "extdata", "sampleStyle1.js"); loadStyleFile(rcy, filename) }