Skip to contents

Draws the SOC stock over time for one treatment, either from an already-loaded ROTH_C() result list or from a previously exported res_year_results.csv/res_month_results.csv file.

Usage

PLOT_ROTHC_RES(
  res.file = NULL,
  res = NULL,
  step = "years",
  my.run = "my run",
  my.caption = "my caption"
)

Arguments

res.file

Path to a res_year_results.csv/res_month_results.csv file (as written by EXPORT_ROTHC_RES()). If supplied, res and step are ignored for the file-vs-object choice (data is read from the file, at whatever yearly/monthly granularity it contains).

res

A single ROTH_C() result list (e.g. l.res[[id]]$res), used when res.file is NULL.

step

"years" or "months" – which element of res (output_years/output_months) to plot; ignored when res.file is supplied.

my.run, my.caption

Strings used as the plot subtitle/caption.

Value

A ggplot object.