Skip to contents

For each ID in input.rotation.id, calls f.plot.rotation() several times (crops only, with carbon input, and – when op.res = TRUE – with the modelled SOC curve overlaid for 1 and for 10 rotation cycles) and saves each as a PNG next to the treatment's own container, in the case-level shared fig/ folder.

Usage

f.plot.many.graphs(
  l.res,
  input.sim.run,
  input.case,
  input.rotation.id,
  op.res = TRUE,
  op.full.crop.list = NULL
)

Arguments

l.res

Named list of per-treatment results, as returned by run.socmo().

input.sim.run, input.case

Same simulation run/case identifiers passed to run.socmo().

input.rotation.id

Vector of rotation IDs (names of l.res) to export schematics for.

op.res

If TRUE (default), also export the two SOC-overlay variants (_carbon_mod_1.png, _carbon_mod_10rot.png), which require l.res[[id]]$full.res (i.e. op.run = TRUE upstream).

op.full.crop.list

Optional full crop list (from f.get.all.crops()) forwarded to f.plot.rotation() to keep a stable color/emoji mapping across treatments.

Value

Invisibly a confirmation string; the real output is the PNG files written as a side effect, under ./data_out/<input.sim.run>/<input.case>/fig/.