Description Usage Arguments Details Value Examples
setEdgeStyle
plain & fast (haystack) vs fancy & slower (bezier)
1 2 | ## 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
1 2 3 4 5 6 7 8 9 | 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.