savePNG: savePNG

Description Usage Arguments Value Examples

Description

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

Usage

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

Arguments

obj

an RCyjs instance

filename

a character string

Value

no return value

Examples

1
2
3
4
5
6
7
8
9
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)
   }

Example output

Loading required package: BrowserViz
Loading required package: jsonlite
Loading required package: httpuv

Attaching package:BrowserVizThe following objects are masked frompackage:jsonlite:

    fromJSON, toJSON

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which.max, which.min


Attaching package:RCyjsThe following object is masked frompackage:graphics:

    layout

RCyjs documentation built on Nov. 8, 2020, 8:20 p.m.