SStemp3 | R Documentation |
Self starter for Collatz temperature response function
temp3(x, t.m, t.l, t.h)
SStemp3(x, t.m, t.l, t.h)
x |
input vector (x) which is normally ‘temperature’. |
t.m |
medium temperature |
t.l |
low temperature |
t.h |
high temperature |
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
temp3: vector of the same length as x using a temp function
## 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.