save_PDF {JOPS}R 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.


[Package JOPS version 0.1.19 Index]