vAlign,RCyjs-method {RCyjs} | R Documentation

## vAlign

### Description

`vAlign` vertically align selected nodes

### Usage

    ## S4 method for signature 'RCyjs'
    vAlign(obj)

### Arguments

`obj` | an RCyjs instance

### Details

The shared x coordinate will be the mean of the x coordinates of selected nodes. The y coordinates are preserved.

### Value

no return value

### Examples

    if(interactive()){
      g <- simpleDemoGraph()
      rcy <- RCyjs(title="rcyjs demo", graph=g)
      layout(rcy, "cose")
      selectNodes(rcy, nodes(g)[1:2])
      vAlign(rcy)
      }

[Package RCyjs version 2.9.3 Index]