beetles | R Documentation |
Temporal measurements of density of beetles (Tribolium confusum) growing in different controlled environments.
beetles
Number of days.
The quantities of flour (in grams) of the environments where the beetles were growing. Six levels of the factor Diet.
The various stage of beetles, i.e., eggs, larvae, pupae, and adults.
The number of insects per environment.
Data from Table No. 1, page 116, of Chapman (1928). Series of experiments under controlled conditions in which flour beetles (Tribolium confusum) are kept in environments of known size. The period from egg to adult is approximately forty days at 27C degrees. The data were entered by Miss Yamara Arancibia, a former student of Prof. Christian Salas-Eljatib.
Chapman RN. 1928. The quantitative analysis of environmental factors. Ecology 9(2):111-122. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2307/1929348")}
data(beetles)
table(beetles$type)
name.diet<-unique(beetles$diet)
num.diet<-length(name.diet)
##Time series plot
#first, some computation
alys<-with(beetles,tapply(density,list(as.factor(days),as.factor(diet)),sum))
out<-as.data.frame(alys)
out$time<-row.names(out)
head(out)
#Figure 1 of the paper
matplot(out[,"time"], out[,1:num.diet], las=1, type=c("b"),pch=1,
xlab="Time in days",ylab="Total individuals")
legend("topleft", legend = name.diet, title = "Diet (gr)",
col = 1:6, lty = 1:6, pch = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.