Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

DynamicGrowth

DynamicGrowth class


Description

The DynamicGrowth class contains the results of a growth prediction under dynamic conditions. Its constructor is predict_dynamic_growth.

A subclass of list with items:

  • simulation: A tibble with the model prediction

  • gammas: A tibble with the value of each gamma factor for each value of times.

  • env_conditions: A list of functions interpolating the environmental conditions.

  • primary_pars: A list with the model parameters of the primary model.

  • sec_models: A nested list defining the secondary models.

Usage

## S3 method for class 'DynamicGrowth'
plot(
  x,
  y = NULL,
  ...,
  add_factor = NULL,
  ylims = NULL,
  label_y1 = "logN",
  label_y2 = add_factor,
  line_col = "black",
  line_size = 1,
  line_type = "solid",
  line_col2 = "black",
  line_size2 = 1,
  line_type2 = "dashed"
)

Arguments

x

The object of class DynamicGrowth to plot.

y

ignored

...

additional arguments passed to plot.

add_factor

whether to plot also one environmental factor. If NULL (default), no environmental factor is plotted. If set to one character string that matches one entry of x$env_conditions, that condition is plotted in the secondary axis

ylims

A two dimensional vector with the limits of the primary y-axis.

label_y1

Label of the primary y-axis.

label_y2

Label of the secondary y-axis.

line_col

Aesthetic parameter to change the colour of the line geom in the plot, see: geom_line

line_size

Aesthetic parameter to change the thickness of the line geom in the plot, see: geom_line

line_type

Aesthetic parameter to change the type of the line geom in the plot, takes numbers (1-6) or strings ("solid") see: geom_line

line_col2

Same as lin_col, but for the environmental factor.

line_size2

Same as line_size, but for the environmental factor.

line_type2

Same as lin_type, but for the environmental factor.

Functions

  • plot.DynamicGrowth: predicted growth curve under dynamic conditions.


biogrowth

Modelling of Population Growth

v0.2.0
GPL-3
Authors
Alberto Garre [aut, cre] (<https://orcid.org/0000-0002-4404-3550>), Jeroen Koomen [aut], Heidy den Besten [aut], Marcel Zwietering [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.