Description Usage Arguments Value See Also
View source: R/ggplot2utilsVL.R
printGraTiffVL
prints a ggplot2 into an svg and a tiff files with the desired resolution and size. Produces plot with optimal quality and with Cairo type anti-aliasing.
1 2 3 4 | printGraTiffVL(graphObj, fileN, width = 7, height = 7, resol = 600,
unit = "in", compress = "LZW", showF = F,
IMloc = "C:\\Program Files\\ImageMagick-7.0.3-Q16\\convert.exe",
grayscale = F)
|
graphObj |
ggplot2 object to print. |
fileN |
Path to the files to be created. Must exclude the file extension. |
width |
Width of the image in the desired measurement unit. |
height |
Height of the image in the desired measurement unit. |
resol |
Resolution of the image, in dpi. |
unit |
Measurement unit for width and height. Defaults to inches. |
compress |
compression algorithm, one of c("None", "BZip", "Fax", "Group4", "JPEG", "JPEG2000", "Lossless", "LZW", "RLE", "Zip"). Defaults to "LZW". |
showF |
Boolean. Decides whether the .tiff image file should be opened after its creation in an external program. Defaults to FALSE. |
IMloc |
Path to the ImageMagick executable. |
grayscale |
If TRUE, the graph will be saved in grayscale (necessary for word documents) |
the path to the .tiff file.
http://www.imagemagick.org/script/command-line-options.php http://www.imagemagick.org/script/index.php
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.