printGraTiffVL: Prints a ggplot2 object into a .svg and a .tiff files

Description Usage Arguments Value See Also

View source: R/ggplot2utilsVL.R

Description

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.

Usage

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)

Arguments

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)

Value

the path to the .tiff file.

See Also

http://www.imagemagick.org/script/command-line-options.php http://www.imagemagick.org/script/index.php


VinLaflamme/ggplot2utilsVL documentation built on May 26, 2019, 1:31 a.m.