show_guess_coupled: Plot of the initial guess for the Baranyi-Ratkowsky model

View source: R/guess_coupled.R

show_guess_coupledR Documentation

Plot of the initial guess for the Baranyi-Ratkowsky model

Description

Compares the prediction corresponding to a guess of the parameters of the Baranyi-Ratkowsky model against experimental data

Usage

show_guess_coupled(
  fit_data,
  guess,
  mode = "two_steps",
  logbase_mu = exp(1),
  logbase_logN = 10
)

Arguments

fit_data

Tibble (or data.frame) of data for the fit. The shape of the data will depend on the fitting mode (see fit_coupled_growth())

guess

Named vector with the initial guess of the model parameters

mode

the type of model fitting approach. Either two_steps (fitted from the values of mu and lambda) or one_step (fitted from logN)

logbase_mu

Base for the definition of mu. By default, exp(1) (natural logarithm).

logbase_logN

Base for the definition of logN. By default, 10 (decimal logarithm).

Value

A ggplot2::ggplot() comparing the model prediction against the data


albgarre/biogrowth documentation built on April 12, 2025, 9:46 a.m.