layoutSelectionInGrid,RCyjs-method {RCyjs} | R Documentation

## layoutSelectionInGrid

### Description

`layoutSelectionInGrid` arrange selected nodes in this region

### Usage

    ## S4 method for signature 'RCyjs'
    layoutSelectionInGrid(obj, x, y, w, h)

### Arguments

`obj` | an RCyjs instance
`x` | numeric this will be the top left x coordinate of the grid
`y` | numeric the top right
`w` | numeric width of the grid
`h` | numeric height of the grid

### Value

no return value

### Examples

    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"));
       selectNodes(rcy, nodes(g))
       layoutSelectionInGrid(rcy, -1000, 10, 100, 400)
       }

[Package RCyjs version 2.10.0 Index]