Learn R Programming

pam (version 2.0.0)

plot_control: Plot Control

Description

This function creates a control plot for the used model based on the provided data and model results.

Usage

plot_control(data, model_result, title, color = "black")

Value

A plot displaying the original ETR and Yield values and the regression data. A table below the plot shows the calculated data.

Arguments

data

A `data.table` containing the original ETR and yield data for the plot.

model_result

A list containing the fitting results of the used model and the calculated parameters.

title

A character string that specifies the title of the plot.

color

A color specification for the regression line in the plot.

Details

A detailed documentation can be found under https://github.com/biotoolbox/pam?tab=readme-ov-file#plot_control

Examples

Run this code
path <- file.path(system.file("extdata", package = "pam"), "20240925.csv")
data <- read_dual_pam_data(path)

result <- eilers_peeters_generate_regression_ETR_I(data)
plot_control(data, result, "Control Plot")

Run the code above in your browser using DataLab