Description Usage Arguments Details Value See Also Examples
saveLayout
to a named file
1 2 | ## S4 method for signature 'RCyjs'
saveLayout(obj, filename = "layout.RData")
|
obj |
a RCyjs instance |
filename |
"layout.RData" by default |
All node positions are saved to a functionally opaque RData object, in a file whose name you supply. These files are used by restoreLayout.
no return value
1 2 3 4 5 6 7 | if(interactive()){
rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
layout(rcy, "grid")
saveLayout(rcy, filename="gridLayout.RData")
layout(rcy, "circle")
restoreLayout(rcy, "gridLayout.RData")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.