| hAlign,RCyjs-method {RCyjs} | R Documentation |
hAlign horizontally align selected nodes
## 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
if(interactive()){
g <- simpleDemoGraph()
rcy <- RCyjs(title="rcyjs demo", graph=g)
layout(rcy, "cose")
selectNodes(rcy, nodes(g)[1:2])
hAlign(rcy)
}