Description Usage Arguments Details Value Examples
vAlign vertically align selected nodes
1 2  | ## 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
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])
  vAlign(rcy)
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.