save_pdf: Save PDF file

View source: R/S04_Plotting.R

save_pdfR Documentation

Save PDF file

Description

Function that generates a figure and saves as a PDF file using common settings.

Usage

save_pdf(file_name, fun_plot, dmn = c(5, 5), return_file_name = FALSE, ...)

Arguments

file_name

A character string, the desired path to the PNG file.

fun_plot

A function that generates a figure as output.

dmn

A numeric vector of two values, the width and height of the figure to save (default is in inches).

return_file_name

A logical value, if TRUE returns the file name as a character string.

...

Additional arguments for the fun_plot function.

Value

A PDF file, and optionally the file name.


rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.