fit_photosynthetic_induction_Ci_curve: A function that fits Ci of a photosynthetic induction.

View source: R/fit_photosynthetic_induction_Ci_curve.R

fit_photosynthetic_induction_Ci_curveR Documentation

A function that fits Ci of a photosynthetic induction.

Description

A function that fits Ci of a photosynthetic induction curve. It fits the data from the point where the light changes. It calculates Ci1, Ci2 and deltaCi. It uses nls to fit the data. You can check if the fit is good. It returns a list with all the parameters it used to fit the line. These include Ci1, Ci2, deltaCi and other constands. If the model gave a warning or error then the parameter values are NA.

It only accepts licor files that have every input parameter stable except changing the light once. Commonly made with a timed lamp autoprogram with only two steps. The dataframe has to contain Ci, elapsed and Qin.

Usage

fit_photosynthetic_induction_Ci_curve(
  dataframe,
  mean_width = 50,
  fit_width = 0,
  title = "Photosynthetic induction Ci curve",
  subtitle = "",
  manual_check = TRUE,
  save_plot = FALSE,
  save_path = "output_directory_licorfiles/photosynthetic_induction_Ci_plots/"
)

Arguments

dataframe

A dataframe from which to calculate the fit parameters.

mean_width

An integer of how many points to use for the means.

fit_width

An integer of how many points to use for the fit. If fit_width is smaller than mean_width then it takes all points.

title

A string for the title of the plot

manual_check

A boolean to regulate if you want to manual check the data

Value

Returns a list of the check state, Ci1, Ci2, deltaCi, other constands

Author(s)

Sam Loontjens

Examples

  parameters <- fit_photosynthetic_induction_Ci_curve(dataframe,
                                                     "data from today")


SamLoontjens/HandlingLicorFiles documentation built on Nov. 14, 2023, 6:32 a.m.