ProjectTwo.Rmd
Please have a look at this paper. It explains the relationship between air temperature, butterfly emergence, and plant flowering.
Phenology is the study of when events happen in organisms’ life cycles. For example, the first flowering of a plant for the year, or the emergence of forager bees. Typically, organisms take cues from their environment. Commonly, these are changes such as photoperiod (how much light there is per day) or temperature.
When organisms that rely on one another fall out of sync, it can be a problem. For example, if a plant starts to flower when the soil is warm enough, this will often occur after a period of warmer air temperatures because soil has a higher heat capacity than air. What happens to the bees when they emerge and don’t find any food? This is called ecological mismatch. Originally described in 2004 by Winder and Schindler, ecological mismatch can mean that one or both species don’t have their needs met by the environment.
What we’re going to do today is look at some historical and present-day ecological data. What were the temperatures historically? And when did butterflies erupt from their cocoons? Butterflies need to be warm to incubate, exit the coccoon and go into flight.
Before trying the test, make sure you’ve read the Kharouba and Vellend paper and understand the hypotheses they were testing.
download.file(url = "https://raw.githubusercontent.com/Paleantology/GBIO153H/master/data/Butterfly_data.csv", destfile = "data/Butterfly_data.csv")
download.file(url = "https://raw.githubusercontent.com/Paleantology/GBIO153H/master/data/Phenology_data.csv", destfile = "data/Phenology_data.csv")
# Code
How many unique species of butterly are in the dataset? (5pts)
Check out the relationship between temperature and time. First, let’s plot it. Choose an approriate plot type, and plot the year vs. temperature. (5 pts)
# Code
stat_smooth
to add a regression to the plot. (5 pts)
#Code
#Code
# code here
#Answer here
#Code
#Code
#Answer here.
For each of your function files, add to the .R: