Learn R Programming

pam (version 2.0.0)

combo_plot_control: Combined ETR Plot and Summary Table

Description

Generates a plot of ETR data with different regression model predictions and a summary table.

Usage

combo_plot_control(title, data, model_results, name_list, color_list)

Value

A plot with ETR data, regression results, and a summary table.

Arguments

title

Character. Plot title.

data

Data frame. ETR and PAR data.

model_results

List. Regression data and parameters.

name_list

List. Names for models (legend and table).

color_list

List. Colors for model lines.

Details

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

Examples

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

model_results_eilers_peeters <- eilers_peeters_generate_regression_ETR_II(data)
model_results_eilers_peeters_modified <- eilers_peeters_modified(model_results_eilers_peeters)

model_results_platt <- platt_generate_regression_ETR_II(data)
model_results_platt_modified <- platt_modified(model_results_platt)

model_results <- list(model_results_eilers_peeters_modified, model_results_platt_modified)
name_list <- list("Eilers-Peeters", "Platt")
color_list <- list("red", "pink")
plot <- combo_plot_control("test", data, model_results, name_list, color_list)

Run the code above in your browser using DataLab