thermal_curve_a: Create thermal tolerance curves.

View source: R/thermal_curve_a.R

thermal_curve_aR Documentation

Create thermal tolerance curves.

Description

Creates a quadratic thermal tolerance curve of the form: width_param * (temp - optim_temp)^2 + max_a Negative values are *not* returned as 0 for speed of computation. You should check for this after.

Usage

thermal_curve_a(temp, optim_temp = 15, max_a = 1.4, width_param = 0.02)

Arguments

temp

The input temperature value.

optim_temp

The optimal temperature.

max_a

The maximum productivity parameter 'a' from a Ricker model (or whatever the y-axis value is you want to return).

width_param

A parameter to control the width of the parabola. Smaller numbers make wider parabolas.

Value

A productivity parameter given the location on a thermal tolerance curve.

Examples

x <- seq(5, 30, length.out = 200)
plot(x, thermal_curve_a(x), ylab = "a", xlab = "Temperature", type
= "l")

seananderson/metafolio documentation built on Feb. 13, 2024, 5:47 a.m.