Description Usage Arguments Value Author(s) See Also Examples
Save current plot to the file.
1 2 3 4 5 6 | ## 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"), ...)
|
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 |
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 |
Name of the file the plot was saved to.
Alex Lisovich, Roger Day
For more information see Display
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.