saveJPG,RCyjs-method {RCyjs} | R Documentation

## saveJPG

### Description

`saveJPG` write current cytoscape view, at current resolution, to a JPG file.

### Usage

    ## S4 method for signature 'RCyjs'
    saveJPG(obj, filename, resolutionFactor = 1)

### Arguments

`obj` | an RCyjs instance
`filename` | a character string
`resolutionFactor` | numeric, default 1, higher values multiply resolution beyond screen dpi

### 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=".jpg")
       saveJPG(rcy, filename, resolutionFactor)
       }

[Package RCyjs version 2.4.0 Index]