fit: fit

Description Usage Arguments Value Examples

Description

fit zoom in (or out) to display all nodes in the current graph

Usage

1
2
## S4 method for signature 'RCyjs'
fit(obj, padding = 30)

Arguments

obj

an RCyjs instance

padding

numeric, in pixels

Value

no return value

Examples

1
2
3
4
5
if(interactive()){
   rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
   setZoom(rcy, 0.5)   # zoom out
   fit(rcy)
   }

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.