Description Usage Arguments Value Examples
saveJPG
write current cytoscape view, at current resolution, to a JPG file.
1 2 | ## S4 method for signature 'RCyjs'
saveJPG(obj, filename, resolutionFactor = 1)
|
obj |
an RCyjs instance |
filename |
a character string |
resolutionFactor |
numeric, default 1, higher values multiply resolution beyond screen dpi |
no return value
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=".jpg")
saveJPG(rcy, filename, resolutionFactor)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.