| layout,RCyjs-method {RCyjs} | R Documentation |
layout apply a layout algorithm to the current grap
## S4 method for signature 'RCyjs' layout(obj, strategy = "random")
obj |
an RCyjs instance |
strategy |
a character string, one of the supported algorithms |
explain what the method returns
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)
}
}