SStemp3 {nlraa} | R Documentation |
self start for Collatz temperature response
Description
Self starter for Collatz temperature response function
Usage
temp3(x, t.m, t.l, t.h)
SStemp3(x, t.m, t.l, t.h)
Arguments
x |
input vector (x) which is normally ‘temperature’. |
t.m |
medium temperature |
t.l |
low temperature |
t.h |
high temperature |
Details
Collatz GJ , Ribas-Carbo M Berry JA (1992) Coupled Photosynthesis-Stomatal Conductance Model for Leaves of C4 Plants. Functional Plant Biology 19, 519-538. https://doi.org/10.1071/PP9920519
Value
temp3: vector of the same length as x using a temp function
Examples
## A temperature response function
require(ggplot2)
set.seed(1234)
x <- 1:50
y <- temp3(x, 25, 13, 36) + rnorm(length(x), sd = 0.05)
dat1 <- data.frame(x = x, y = y)
fit1 <- nls(y ~ SStemp3(x, t.m, t.l, t.h), data = dat1)
ggplot(data = dat1, aes(x, y)) +
geom_point() +
geom_line(aes(y = fitted(fit1)))
[Package nlraa version 1.9.7 Index]