Activity

Figure 1 from Brandt et al. (2022)

Effects of Herbivory and Nutrients on Algal Growth Rates

Research Context

Researchers have implemented an experiment to evaluate the effects of herbivory and nutrients on algal growth rates. On randomized locations across a reef, they’ve exposed 1x1 m areas to one of 5 treatments:

  1. Full cage
  2. Additional nutrients
  3. Full cage + additional nutrients
  4. An open cage
  5. Control – no manipulation.

The cage represents an herbivore exclusion treatment. The open cage is a control for potential effects of the cage itself.

After 1 month, they measured the growth (in mm) of algae in each treatment, to get the growth rate in mm / month.

Your task is to analyze the data from this experiment and determine the effects of these treatments on algal growth rates.

Download the data

Follow the link to Download this data - This will take you to github where you will see option to “Download raw file” on the right side of the window. Shown here:


Steps:

i. Open a new script and make a header: At the top of your R script, include a header with your name, the date, and a brief description of the analysis.

ii. Setting the Working Directory: Set the working directory to where your dataset is located, and where you want to save your scripts and outputs. It is helpful to save these scripts all together so you can come back to them.

iii. Install and load libraries: Load the necessary packages for the exercise. There are a few we have loaded pretty consistently through now, so probably best to load those up.

###########################
# Lab Activity Sept 25 or Week 7
# Author: 
# Date: 
###########################

# set working directory
setwd("set/your/working/directory/here")

# load libraries 
# library(LIBRARY_YOU_NEED1)
# library(LIBRARY_YOU_NEED2)

1. Import the data into RStudio. Melt and rearrange if necessary.

2. Make a summary dataframe of your data.

3. Using the summary dataframe you just made, plot average algal growth +/- standard error bars.

4. Perform an ANOVA on the data.

5. ANOVA Assumption: Test normality of residuals using the Shapiro-Wilk test.

6. ANOVA Assumption: Test homoscedasticity using Bartlett’s test.

7. Interpret ANOVA results.

8. Perform post-hoc Tukey’s HSD test.

9. Succinctly (2-4 sentences) discuss the results of the experiment concerning the effects of herbivory and nutrients on algal growth.

For steps 10 and 11, follow the code used in the section immediately before this section. You must modify that code, and fill in the correct terms/variables/columns for this dataset. This is very similar to what you will be doing when you are working on your own data.

10. add a column to your summary dataframe containing significance letters indicating the results of the Tukey HSD test.

11. Add the significance letters to a bar graph to visualize the results.

Brandt, Margarita, Isabel Silva-Romero, David Fernández-Garnica, Esteban Agudo-Adriani, Colleen B. Bove, and John F. Bruno. 2022. “Top-down and Bottom-up Control in the Galápagos Upwelling System.” Frontiers in Marine Science 9 (May). https://doi.org/10.3389/fmars.2022.845635.