RENR 580
Methods
Data Preparation
Manipulation of the Reef Visual Census Data
The Reef fish Visual Census dataset was collected in a "long" format; however, for the analyses that I wished to run on this dataset, it needed to be in a "wide" format. Therefore I performed a long-to-wide transformation using the dcast() function in R. I also removed variables that were unnecessary for this study such as the length of each fish.
​
Addition of the Environmental Data
Four raster datasets were used to collect environmental data on the study region, in addition to the observational data collected through the reef visual census. In order to add these values as variables in the existing dataset, the existing dataset had to be clipped to only contain sample sites that are within the borders of the rasters. The dataset was clipped using the Clip tool in ArcGIS Pro, and the remaining 545 observation sites were coloured by subregion (Fig 2). Values from each raster were extracted at the location of each of these 545 observation points in R, using the sf and raster packages.
​
Calculation of Species Richness and Simpson's Diversity Index
Species richness and Simpson's diversity index were calculated for each site using the species occurrence data (Eq 1 & 2). Species richness is the number of unique species at each site. Simpson's diversity index is the probability that if you chose two individuals at random they would be different species. Simpson's index was chosen over Shannon's index because Shannon's index emphasizes species richness, which I already had a separate metric for, while Simpson's index emphasizes species evenness.
Fig 2: Observation sites along the Florida Keys Reef Tract, clipped to within the boarder of the rasters and coloured by subregion.
Environmental Data
Below are the rasters used to provide data on water depth, mean summer levels of dissolved oxygen, mean summer water temperatures, and mean summer water salinity (Fig 3). The cell size of these rasters is roughly 5m by 5m, giving a relatively good resolution.
Fig 3: Rasters of water depth, mean summer dissolved oxygen, mean summer water temperature, and mean summer salinity.
Reef habitat types were categorized based on patchiness and vertical relief (Fig 4), and given the following codes:
ISOL_HR / _MR / _LR :
​
​
SPGR_HR / _MR / _LR :
​
​
CONT_HR / _MR / _LR :
​
​
RUBB_LR :
- Isolated patchy reef with high / moderate / low vertical relief
- Spur-groove reef with high / moderate / low vertical relief
- Contiguous reef with high / moderate / low vertical relief
- Rubble reef with low vertical relief
Fig 4: Reef habitat types, categorized by patchiness and vertical relief (Ault, 2017).