fit,RCyjs-method {RCyjs}R Documentation

fit

Description

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

Usage

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

Arguments

obj

an RCyjs instance

padding

numeric, in pixels

Value

no return value

Examples

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

[Package RCyjs version 2.14.0 Index]