save_PDF: Save a plot as a PDF file.

View source: R/save_PDF.R

save_PDFR Documentation

Save a plot as a PDF file.

Description

Save a plot as a PDF file in a (default) folder. The present default is determined by the folder structure for the production of the book.

Usage

save_PDF(
  fname = "scratch",
  folder = "../../Graphs",
  show = T,
  width = 6,
  height = 4.5
)

Arguments

fname

the file name without the extension PDF (default: scratch).

folder

the folder for saving PDF plots (default ../../Graphs).

show

a logical parameter; if TRUE the full file name will be displayed.

width

figure width in inches (default = 6).

height

figure height in inches (default = 4.5).

Value

save a plot as a PDF file.

Author(s)

Paul Eilers

References

Eilers, P.H.C. and Marx, B.D. (2021). Practical Smoothing, The Joys of P-splines. Cambridge University Press.


JOPS documentation built on Sept. 8, 2023, 5:42 p.m.

Related to save_PDF in JOPS...