layoutSelectionInGrid: layoutSelectionInGrid

Description Usage Arguments Value Examples

Description

layoutSelectionInGrid arrange selected nodes in this region

Usage

1
2
## 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

1
2
3
4
5
6
7
8
9
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)
   }

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