plot_curve: Plot fitted curve to png files and additionally compile them...

View source: R/plot_curve.R

plot_curveR Documentation

Plot fitted curve to png files and additionally compile them in a pdf file.

Description

This function produces plot showing the raw data and the fittet curves. It saves it to a folder named after the scenario and it produces a pdf containing all the figures.

Usage

plot_curve(
  raw,
  supplycurve_commonY,
  supplycurve_indiviY,
  infes,
  emu_path = "emulator",
  fitname = "linear",
  create_pdf = TRUE
)

Arguments

raw

MAgPIE object containing the same raw data that was used to calculate the fitcoefficients.

supplycurve_commonY

MAgPIE object containing the points of the curve (with common y limit) (output of calc_supplycurve)

supplycurve_indiviY

MAgPIE object containing the points of the curve (with individual y limit) (output of calc_supplycurve)

infes

MAgPIE object containing the modelstatus (optional output of mute_infes)

emu_path

Name of the folder the figures and pdf will be saved to.

fitname

Name that describes the fit (default: linear) and will be used for naming the output folders.

create_pdf

Logical indicating whether a pdf should be produced that compiles all figures.

Author(s)

David Klein

See Also

calc_supplycurve mute_infes


pik-piam/remulator documentation built on Oct. 19, 2023, 4:07 p.m.