fitSelection,RCyjs-method {RCyjs} | R Documentation

## fitSelection

### Description

`fitSelection` zoom in to include only currently selected nodes

### Usage

    ## S4 method for signature 'RCyjs'
    fitSelection(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())
       selectNodes(rcy, "A")
       fitSelection(rcy, padding=100)
       }

[Package RCyjs version 2.2.2 Index]