savePNG,RCyjs-method {RCyjs} | R Documentation

## savePNG

### Description

`savePNG` write current cytoscape view, at current resolution, to a PNG file.

### Usage

    ## S4 method for signature 'RCyjs'
    savePNG(obj, filename)

### Arguments

`obj` | an RCyjs instance
`filename` | a character string

### Value

no return value

### Examples

    if(interactive()){
       rcy <- RCyjs(title="layouts", graph=createTestGraph(nodeCount=20, edgeCount=20))
       style.filename <- system.file(package="RCyjs", "extdata", "sampleStyle1.js");
       loadStyleFile(rcy, style.filename)
       layout(rcy, "cose")
       fit(rcy)
       filename <- tempfile(fileext=".png")
       savePNG(rcy, filename)
       }

[Package RCyjs version 2.12.0 Index]