This plot is interesting for a visualization of total bees alive over the course of the experiment. It is important to see that the count goes up over time, which suggests some human error in recording behavior…
In data collection, I found that accurately counting the moving bees was difficult, so I thought it would be cool to visualize moving counts by observer. This plot seems to tell me that later in this project, using observer as a random effect will probably be a good idea.
This is visualizing the average number of fanning bees across different temperatures. It is split by infection status to see if fanning behavior differs based on if the bee is sick or not. I think it is cool to see that the bees “give up” as the temperature goes from 37 to 40 degrees C.
This is a boxplot of incubating count by temperature. I think that this is a cool way to visualize how temperature impacts reproductive behavior.
PLOT 5
library(lme4)
Loading required package: Matrix
Attaching package: 'Matrix'
The following objects are masked from 'package:tidyr':
expand, pack, unpack
library(glmmTMB)
Warning in checkDepPackageVersion(dep_pkg = "TMB"): Package version inconsistency detected.
glmmTMB was built with TMB version 1.9.1
Current TMB version is 1.9.2
Please re-install glmmTMB from source or restore original 'TMB' package (see '?reinstalling' for more information)
library(effects)
Loading required package: carData
lattice theme set by effectsTheme()
See ?effectsTheme for details.
m1 <-glm(formula = feeding~temp+day_of_experiment+infected+total_alive, family ="poisson", data = behavior)m1
Call: glm(formula = feeding ~ temp + day_of_experiment + infected +
total_alive, family = "poisson", data = behavior)
Coefficients:
(Intercept) temp30 temp34 temp37
-1.934153 -0.371031 0.581659 1.585467
temp40 day_of_experiment infected1 total_alive
2.378653 -0.004843 0.123934 0.097811
Degrees of Freedom: 1279 Total (i.e. Null); 1272 Residual
(728 observations deleted due to missingness)
Null Deviance: 2710
Residual Deviance: 1215 AIC: 3005
plot(allEffects(m1))
I think this model is a cool way to look at the different effect plots with feeding. It helps me realize that there is an interesting relationship between feeding and temperature and then feeding and infection status.