Skip to content

Commit

Permalink
Uploaded scripts, data, figures, structural files, and README
Browse files Browse the repository at this point in the history
  • Loading branch information
humphrem committed Nov 27, 2024
1 parent 5dab986 commit 2e661a4
Show file tree
Hide file tree
Showing 103 changed files with 6,567 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# History files
.Rhistory
.Rapp.history

# Session Data files
.RData
.RDataTmp

# User-specific files
.Ruserdata

# Example code in package build process
*-Ex.R

# Output files from R CMD build
/*.tar.gz

# Output files from R CMD check
/*.Rcheck/

# RStudio files
.Rproj.user/

# produced vignettes
vignettes/*.html
vignettes/*.pdf

# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth

# knitr and R markdown default cache directories
*_cache/
/cache/

# Temporary files created by R markdown
*.utf8.md
*.knit.md

# R Environment Variables
.Renviron

# pkgdown site
docs/

# translation temp files
po/*~

# RStudio Connect folder
rsconnect/

# Mac only Finder files
.DS_Store
65 changes: 65 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: mill-creek
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- affiliation: >-
University of Guelph, Department of Integrative
Biology
given-names: Koya
family-names: Basso
orcid: 'https://orcid.org/0009-0002-5641-8695'
- given-names: Braden
family-names: Fallon
affiliation: >-
University of Guelph, Department of Integrative
Biology
- given-names: Morgan
family-names: Humphrey
affiliation: >-
University of Guelph, Department of Integrative
Biology
orcid: 'https://orcid.org/0009-0006-5363-1369'
- given-names: Hanna
family-names: Novaes
affiliation: >-
University of Guelph, Department of Integrative
Biology
- given-names: Emma
family-names: Tamburro
affiliation: >-
University of Guelph, Department of Integrative
Biology
- given-names: Sveta
family-names: Uzhova
affiliation: >-
University of Guelph, Department of Integrative
Biology
- given-names: Janna
family-names: Wardell
affiliation: >-
University of Guelph, Department of Integrative
Biology
- given-names: Robert
family-names: Hanner
affiliation: >-
University of Guelph, Department of Integrative
Biology
orcid: 'https://orcid.org/0000-0003-0703-1646'
repository-code: >-
https://github.com/uofg-biodiversity-capstone-2024/mill-creek
url: >-
https://github.com/uofg-biodiversity-capstone-2024/mill-creek/blob/main/README.md
keywords:
- Biodiversity
- Conservation
- Restoration
- Subwatershed
- Mann-Kendall tests
- Regression
license: BSD-2-Clause
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# mill-creek
Code and data for the "Biodiversity, cumulative effects, and the future of restoration in the Mill Creek Subwatershed" report

## Overview
This repository hosts compiled data and analysis code for the report, "Biodiversity, cumulative effects, and the future of restoration in the Mill Creek Subwatershed," written by the University of Guelph BSc. Biodiversity Capstone Class of 2024 on behalf of the [Friends of Mill Creek (FoMC)](https://www.friendsofmillcreek.org/membership/sub-page-top/) community organization, with collaboration from the [Grand River Conservation Authority (GRCA)](https://www.grandriver.ca/).

## Data sources
Continuous data was sourced from the [GRCA Data Downloads](https://data.grandriver.ca/downloads-monitoring.html), including:
- water temperature (Aberfoyle and Side Road 10)
- water flow (Aberfoyle and Side Road 10)
- air temperature (Cambridge Shade's Mills)
- precipitation (Cambridge Shade's Mills)

Other abiotic data was sourced from GRCA document archives and publicly available monitoring reports. Surface water quality data was sourced from the [Government of Ontario's Provincial Water Quality Monitoring Network (PWQMN)](https://data.ontario.ca/en/dataset/provincial-stream-water-quality-monitoring-network) grab sample dataset (Side Road 10, collection site ID 16018413102). Friends of Mill Creek Stewardship Ranger data was sourced from compiled ranger reports. Biotic data was sourced from the [STREAM project](https://stream-dna.org/), GRCA document archives, and publicly available records.

## Organization
Scripts are located under the `code` folder. This includes:
- `air_temp.R` (summary analysis)
- `precip.R` (summary analysis)
- `water_temp.R` (summary analysis)
- `water_flow.R` (summary analysis)
- `mk_tests.R` (Mann-Kendall testing)
- `regressions.R` (regression modelling)
- `abiotic_graphing.R` (water quality, air temp, precipitation, water temp, and ranger restoration graphs)
- `biotic_graphing.R` (biotic inventory, STREAM, and trout graphs)

Data `.csv` and `.xlsx` files are organized under the `data` folder, with different sub-folders. All GRCA continuous monitoring data is represented by a raw data file, metadata file, and summarized data file with average metrics. Output figures are included under the `figures` folder, with different sub-folders. The supplemental material folder includes all supplemental documents for the capstone report, including the report itself.

## Running the code
All code for this repository was written in the R language, which is used to manipulate our data sets, describe the data, perform statistical analyses, and produce graphs. To run the code, clone the repo and open the `mill-creek.Rproj` file in R or RStudio. All required package installation and library code is included at the top of each script.

## Example figures
![biotic inventory classes](figures/biotic_inventory/classes.png)
Proportion of entries in the ongoing biodiversity inventory, by Animal Class. The dashed vertical line separates vertebrate (Chordata) and invertebrate (outside Chordata) Classes.

![ranger restoration](figures/ranger_restoration_activities.png)
Type of restoration work completed by the Mill Creek Stewardship Rangers over the years, by frequency.

![flashiness MK](figures/mann-kendall/MK_annual_flashiness.png)
Annual flashiness index values at the Aberfoyle (left) and Side Road 10 (right) gauge stations.

![water temp regression](figures/regression/water_by_air_temp.png)
Daily average water temperature (C) at the Side Road 10 gauge station as a function of daily average air temperature (C) at the Cambridge Shade’s Mills Climate Station.
Loading

0 comments on commit 2e661a4

Please sign in to comment.