saveLayout: saveLayout

Description Usage Arguments Details Value See Also Examples

Description

saveLayout to a named file

Usage

1
2
## S4 method for signature 'RCyjs'
saveLayout(obj, filename = "layout.RData")

Arguments

obj

a RCyjs instance

filename

"layout.RData" by default

Details

All node positions are saved to a functionally opaque RData object, in a file whose name you supply. These files are used by restoreLayout.

Value

no return value

See Also

restoreLayout

Examples

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

paul-shannon/RCyjs documentation built on May 28, 2019, 1:15 p.m.