saveLayout,RCyjs-method {RCyjs} | R Documentation

## saveLayout

### Description

`saveLayout` to a named file

### Usage

    ## 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

    if(interactive()){
       rcy <- RCyjs(title="rcyjs demo", graph=simpleDemoGraph())
       layout(rcy, "grid")
       saveLayout(rcy, filename="gridLayout.RData")
       layout(rcy, "circle")
       restoreLayout(rcy, "gridLayout.RData")
       }

[Package RCyjs version 2.4.0 Index]