| vAlign,RCyjs-method {RCyjs} | R Documentation |
vAlign vertically align selected nodes
## S4 method for signature 'RCyjs' vAlign(obj)
obj |
an RCyjs instance |
The shared x coordinate will be the mean of the x coordinates of selected nodes. The y 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])
vAlign(rcy)
}