setZoom: setZoom

Description Usage Arguments Value Examples

Description

setZoom zoom in or out

Usage

1
2
## S4 method for signature 'RCyjs'
setZoom(obj, newValue)

Arguments

obj

an RCyjs instance

newValue

numeric, typically be 0.1 (zoomed way out, nodes are small) and 10 (zoomed way in, nodes are large)

Value

no return value

Examples

1
2
3
4
5
6
if(interactive()){
   rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
   setZoom(rcy, 0.2)
   Sys.sleep(1)
   setZoom(rcy, 5)
   }

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