hAlign: hAlign

Description Usage Arguments Details Value Examples

Description

hAlign horizontally align selected nodes

Usage

1
2
## 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

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])
  hAlign(rcy)
  }

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.