hAlign,RCyjs-method {RCyjs} | R Documentation

## hAlign

### Description

`hAlign` horizontally align selected nodes

### Usage

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

### Arguments

`obj` | an RCyjs instance

### Details

The shared y coordinate will be the mean of the y coordinates of selected nodes. The x 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])
      hAlign(rcy)
      }

[Package RCyjs version 2.12.0 Index]