[Experimental]

nmsave_plot is a wrapper around ggplot2::ggsave() for nm objects, nmsave_table is a wrapper for saving data.frames to file in the form of a .csv file.

nmsave_plot(
  r,
  object,
  file_name,
  directory = results_dir(r),
  width = 7,
  height = 5,
  dpi = 300,
  ...
)

nmsave_table(r, object, file_name, directory = results_dir(r), ...)

Arguments

r

An nm object.

object

A list of plotting objects.

file_name

Character. Name of results file.

directory

Character (default = results_dir(r)). Where to save.

width

Passed to ggplot2::ggsave().

height

Passed to ggplot2::ggsave().

dpi

Passed to ggplot2::ggsave().

...

Passed to ggplot2::ggsave().

Value

An nm object with modified result_files field.