layoutSelectionInGrid,RCyjs-method {RCyjs} | R Documentation |
layoutSelectionInGrid
arrange selected nodes in this region
## S4 method for signature 'RCyjs' layoutSelectionInGrid(obj, x, y, w, h)
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 |
no return value
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) }