Skip to contents

Wrapper for plot.gadget.fit that saves all diagnostic graphs to a directory

Usage

gadget_plots(
  fit,
  path,
  file_type = "png",
  quiet = FALSE,
  width = NULL,
  height = NULL,
  units = "cm",
  res = 300,
  ...
)

Arguments

fit

A gadget fit object. See g3_fit.

path

Directory path for saving figures.

file_type

Character. Either one of the devices in ggsave, in which case files of the defined type are printed to path, or "html" which compiles all plots into one html file using knit and the make_html function.

quiet

Logical indicating whether to print messages about the plotting process. Set to FALSE to suppress the messages.

width, height

Plot size given in units. If NULL, reasonable standard values are used.

units

Units for plot size. See ggsave

res

Plot resolution. See the dpi argument in ggsave

...

Additional arguments to plotting functions (only used for plot_annual at the moment)

Value

Returns nothing, but makes the requested files.

See also

make_html