You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are interested in how growing degree days affects canopy cover.
62
62
To investigate this, we are going to model and plot their relationship.
63
-
We want to know the relationship for each cultivar, so we'll start of by determining the parameters of the model for one of the cultivars in our dataset.
64
-
We are using a logistic growth model here because it is appropriate for the shape of the GDD-cover relationship. (From Bolker? ... need to cite)
65
-
66
-
This needs to be flushed out ... and the variable names should be consistent b/w equations and code
63
+
We are using a logistic growth model here because it is appropriate for the shape of the GDD-cover relationship.
67
64
68
65
The logistic growth model is specified as
69
66
70
-
$Y=\frac{z}{1+e^{-k(t-t_0)}}$
71
-
72
-
$Y = \frac{c}{1+e^{a + b * \textrm{gdd}}}$
67
+
$$y = \frac{c}{1+e^{a + b * \textrm{x}}}$$
73
68
74
-
Where $Y$ is canopy cover, $c$ is the maximum canopy cover, $a$ is ... $b$ is ...
69
+
where $y$ is the response variable canopy cover, $x$ is the predictor growing degree days, $c$ is the asymptote or maximum canopy cover, $a$ is the initial value for canopy cover, and $b$ is the steepness of the curve. (reference)
75
70
76
-
From this we can find the asymptote and maximum growth rate. The maximum growth rate is the change in canopy cover per day at the rate of maximum growth. The growing degree day at which maximum growth is obtained is called the _inflection point_ $\textrm{gdd}_i=\frac{\log{a}}{b}$.
77
-
<!--
78
-
or maybe start from the bolker form of the model (I added )
79
-
if $Y=\frac{e^{a+b(t-t_0)}}{1+e^{a+b(t-t_0)}}$
71
+
We want to know the relationship for each cultivar, so we'll start of by determining the parameters of the model for one of the cultivars in our dataset.
72
+
We provide estimated values for the asymptote $c$ and initial canopy cover value $a$, and provide canopy cover $y$ with corresponding growing degree days $x$ for one measurement of the chosen cultivar.
80
73
81
-
then $t-t_0$ is the number of days after planting.
74
+
The below provides better estimates for the $c$, $a$, and $b$ parameters, which are used to plot the model as an orange line on top of the black points which are actual values.
82
75
83
-
then the inflection point is at $x=\frac{-a}{b}$ and the maximum rate of growth, $\max{\frac{dY}{dt}}=\frac{b}{4}$
geom_line(aes(x = gdd_cum, y = mean_predict), color = "orange") +
98
+
labs(x = "Cumulative growing degree days", y = "Canopy Height")
99
+
```
100
+
101
+
We then calculate the inflection point for this cultivar's model.
102
+
103
+
The maximum growth rate is the change in canopy cover per day at the rate of maximum growth. The growing degree day at which maximum growth is obtained is called the _inflection point_. This occurs near the midpoint of the y-axis, or $\frac{c - a}{2}$.
@@ -130,7 +148,7 @@ The last thing that we are going to do is assess the difference in this relation
130
148
We are going to use the inflection point from the logistic growth model, which indicates when canopy cover stops increasing as quickly with increasingly more warm days.
131
149
The resulting inflection points for each cultivar are plotted as a histogram.
132
150
133
-
```{r plot_inflections}
151
+
```{r plot_inflections, eval=FALSE}
134
152
ggplot(all_cultivars) +
135
153
geom_point(aes(x = gdd_cum, y = mean)) +
136
154
geom_line(aes(x = gdd_cum, y = mean_predict), color = "orange") +
0 commit comments