layout: layout

Description Usage Arguments Value See Also Examples

Description

layout apply a layout algorithm to the current grap

Usage

1
2
## S4 method for signature 'RCyjs'
layout(obj, strategy = "random")

Arguments

obj

an RCyjs instance

strategy

a character string, one of the supported algorithms

Value

explain what the method returns

See Also

getLayoutStrategies

Examples

1
2
3
4
5
6
7
8
9
if(interactive()){
  g <- createTestGraph(nodeCount=20, edgeCount=20)
  rcy <- RCyjs(title="layouts", graph=g)
  strategies <- getLayoutStrategies(rcy)
  for(strategy in stategies){
     layout(rcy, strategy)
     Sys.sleep(1)
     }
  }

PriceLab/RCyjs documentation built on May 10, 2019, 8:03 a.m.