Skip to contents

Wrapper for grDevices::pdf().

Usage

save_plot(
  p,
  filename,
  width = 160,
  height = 226.2,
  colormodel = "cmyk",
  scaling = 1,
  ...
)

Arguments

p

Plot that should be saved.

filename

Filepath and -name for the new plot file.

width

Width of the new plot file in mm. Defaults to 160.

height

Height of the new plot file in mm. Defaults to 226.2

colormodel

Colormodel for saving the plot. See grDevices::pdf() for more information. Defaults to "cmyk".

scaling

Scaling parameter for changing height in widht relationally.

...

Further arguments passed to grDevices::pdf().

Value

A PDF file.

Examples

# tbd