Learn R Programming

IdMappingAnalysis (version 1.16.0)

Display$copy: Save current plot to the file

Description

Save current plot to the file.

Usage

## Static method (use this): ## Display$copy(filename, zoom=1, plotFun=NULL, plotArgs=list(), type=c("png", "jpeg", "jpg", "tiff", "bmp", "pdf"), res=72, quality=100, compression=c("none", "rle", "lzw", "jpeg", "zip"), ...)
## Don't use the below: "copy"(static, filename, zoom=1, plotFun=NULL, plotArgs=list(), type=c("png", "jpeg", "jpg", "tiff", "bmp", "pdf"), res=72, quality=100, compression=c("none", "rle", "lzw", "jpeg", "zip"), ...)

Arguments

filename
The filename under which to save the plot.
zoom
Copy zoom factor. Default is 1.
plotFun
If NULL (default), copies the content of the current device to the file, otherwise uses plotFun to plot into the file.
plotArgs
The list of parameters for the poltFun. Default is an empty list.
type
The type of plot, PNG, JPEG, TIFF, or PDF. Default is PNG.
res
DPI resolution. Default is 72dpi.
quality
If type is JPEG, the 'quality' of the JPEG image, as a percentage. Smaller values will give more compression but also more degradation of the image. Default is 100 (best quality).
compression
If type is TIFF the type of compression to be used. Could be 'none', 'rle', 'lzw', 'jpeg' or 'zip'. Default is 'none'.
...
Not used

Value

Name of the file the plot was saved to.

See Also

For more information see Display.