Description Usage Arguments Details Value Examples
hAlign
horizontally align selected nodes
1 2 | ## S4 method for signature 'RCyjs'
hAlign(obj)
|
obj |
an RCyjs instance |
The shared y coordinate will be the mean of the y coordinates of selected nodes. The x coordinates are preserved.
no return value
1 2 3 4 5 6 7 | if(interactive()){
g <- simpleDemoGraph()
rcy <- RCyjs(title="rcyjs demo", graph=g)
layout(rcy, "cose")
selectNodes(rcy, nodes(g)[1:2])
hAlign(rcy)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.