setEdgeStyle: setEdgeStyle

Description Usage Arguments Details Value Examples

Description

setEdgeStyle plain & fast (haystack) vs fancy & slower (bezier)

Usage

1
2
## S4 method for signature 'RCyjs'
setEdgeStyle(obj, mode = c("bezier", "haystack"))

Arguments

obj

an RCyjs instance

mode

a character string, either "bezier" or "haystack"

Details

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

Value

no return value

Examples

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)
   }

PriceLab/RCyjs documentation built on May 10, 2019, 8:03 a.m.