Friday, January 27, 2006
http://www.unc.edu/courses/2006spring/ecol/145/001/data/assign1/assignment1.csv
Included are six years of temperature data and disease prevalence for coral reefs in the Great Barrier Reef of Australia. The variables of interest are PREV_1 (prevalence of White syndrome as counts, i.e., number of infected reefs observed) and WSSTA (# of Weekly Sea Surface Temperature Anomalies that occurred in the previous year) as well as variables locating a reef's geographic position, LAT_DD and LON_DD, the date on which it was observed, DATE, and its name, REEF_NAME. The rest of the variables can be ignored. The data are in the form of a comma-delimited text file in which the variable names appear as the first row of the file.
For all questions submit the R code you used to produce your answers as well as your answer. Electronic submissions are welcome. Note: you can obtain help on a command by using the help function in R. For example, to see the options for R's plot function, type help(plot).
BONUS: Can you figure out how to get R to list only the reefs that were not visited every year? This can be done with one additional line of code.
Hint 1: The output of every R function can be assigned to a variable.
Hint 2: The method we used to locate the hotspots (i.e., the way we subsetted the data in coloring points on a scatter plot) is relevant here.
Reese, R. Allan. 2005. Boxplots. Significance 2(3): 134–135.
| Jack Weiss Phone: (919) 962-5930 E-Mail: jack_weiss@unc.edu Address: Curriculum in Ecology, Box 3275, University of North Carolina, Chapel Hill, 27516 Copyright © 2006 Last Revised--Jan 17, 2006 URL: http://www.unc.edu/courses/2006spring/ecol/145/001/docs/assignments/assign1.htm |