Description Usage Arguments Value Examples
layoutSelectionInGrid
arrange selected nodes in this region
1 2 | ## 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
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.