Description Usage Arguments Value See Also Examples
layout
apply a layout algorithm to the current grap
1 2 | ## 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
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)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.