Display$copy {IdMappingAnalysis} | R Documentation

## 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:
    ## S3 method for class 'Display'
    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.

### Author(s)

Alex Lisovich, Roger Day

### See Also

For more information see `Display`.

### Examples

    ## Not run:
     plot(c(1:20),c(1:20));
     Display$copy("plot.png");

    ## End(Not run)

[Package IdMappingAnalysis version 1.26.0 Index]