vAlign: vAlign

Description Usage Arguments Details Value Examples

Description

vAlign vertically align selected nodes

Usage

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

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)
  }

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.