# Support

## Support Options

• ### Knowledge Base

Find information on common questions and issues.

• ### Support Messages

Check on the status of your correspondences with members of the QUBES team.

## Optimal Foraging in Swirl

By Mary Elizabeth McWhirt1, Emily Weigel1

Georgia Institute of Technology

This lesson centers around the marginal value theorem (MVT, Charnov 1976), which describes how animals should forage in patches. It serves as a pre-lab to teach MVT basics, vectors, ANOVA, and basic plotting.

Listed in Teaching Materials | resource by group Make Teaching with R in Undergraduate Biology Less Excruciating

Version 2.0 - published on 08 Oct 2019 doi:10.25334/2YEK-ZY02 - cite this

#### Description

Overview: This lesson centers around the marginal value theorem (MVT, Charnov 1976), which describes how animals should forage in patches. The students will complete a lesson in R to practice using data they will collect directly as they ‘forage’ in an in-class lab. Specifically, they will practice creating vectors and tables of data to use in plotting and creating an ANOVA to compare high-, medium-, and low-density patches by their associated giving-up time (GUT) data. Students are then expected to repeat the coding steps they learned in R with example data to later test a hypothesis of their own.

Learning objectives:

 Complete a prelab reading to familiarize themselves with the goals of the lesson and the background ecological information of optimal foraging Practice coding elements necessary to create data frames, plot, and test MVT hypotheses based on the data Apply the coding learned through swirl to their own hypothesis to answer whether different density patches lead to different GUTs

#### Cite this work

Researchers should cite this work as follows:

#### Notes

This version removes dependencies by reordering the statistics and plotting lessons. We have also added information on how/why to conduct a t-test to contrast with the ANOVA suggested as part of the lesson.

### Make Teaching with R in Undergraduate Biology Less Excruciating

When watching a resource, you will be notified when a new version is released.