Description Usage Arguments Value Author(s) See Also Examples
Write an image of the specified type to the specified file. For image type 'png' there is an option to set the height of the image (see argument h). Note: the file is written to the file system of the computer upon which R is running, not Cytoscape – in those cases where they are different. It is saved to the working directory.
1 | saveImage(obj, file.name, image.type, h = 600)
|
obj |
a |
file.name |
a |
image.type |
a |
h |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectNodes clearSelection
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('saveImage.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'force-directed')
redraw (cw)
filename <- paste (getwd (), 'saveImageTest', sep='/')
saveImage (cw, filename, 'svg') # currently supports svg, pdf and png
saveImage(cw, filename, 'png', 1600)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.