setEdgeStyle,RCyjs-method {RCyjs} | R Documentation |
setEdgeStyle
plain & fast (haystack) vs fancy & slower (bezier)
## S4 method for signature 'RCyjs' setEdgeStyle(obj, mode = c("bezier", "haystack"))
obj |
an RCyjs instance |
mode |
a character string, either "bezier" or "haystack" |
cytoscape.js offers two kinds of edge rendering - a tradeoff in richess and speed edge target decorations (arrows, tee, etc) are only rendered with the "bezier" style
no return value
if(interactive()){ g <- simpleDemoGraph() rcy <- RCyjs(title="rcyjs demo", graph=g) layout(rcy, "cose") fit(rcy, 100) loadStyleFile(rcy, system.file(package="RCyjs", "extdata", "sampleStyle2.js")) setEdgeStyle(rcy, "bezier") redraw(rcy) }