thermal_curve_a {metafolio} | R 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")
[Package metafolio version 0.1.2 Index]