exportImage | R Documentation |
Saves the current network view as an image file.
exportImage(
filename = NULL,
type = "PNG",
resolution = NULL,
units = NULL,
height = NULL,
width = NULL,
zoom = NULL,
network = NULL,
base.url = .defaultBaseUrl,
overwriteFile = TRUE
)
filename |
( |
type |
( |
resolution |
( |
units |
( |
height |
( |
width |
( |
zoom |
( |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
The image is cropped per the current view in Cytoscape. Consider
applying fitContent
prior to export.
server response
exportImage('/fullpath/myNetwork','PDF')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.