This interactive Shiny application predicts aragonite levels in the Great Barrier Reef based on environmental parameters. Aragonite, a critical component of coral reef structures, has a profound impact on reef accretion and erosion processes. By accurately predicting aragonite levels, we can gain valuable insights into the potential for reef growth or degradation in different areas, aiding in effective conservation planning.
View the live application: Great Barrier Reef Aragonite Analysis
- Deployed on: shinyapps.io
- Last deployment: March 19, 2025
- Status: Check status
- Interactive Map: Visualize aragonite levels across the Great Barrier Reef with color-coded markers
- Risk Calculator: Predict aragonite levels based on environmental parameters
- Filtering Capabilities: Filter data by year and enable/disable clustering for clearer visualization
- Add Custom Points: Add new points to the map to analyze hypothetical scenarios
- Comprehensive Data Analysis: Combine biogeochemical and hydrodynamic data for accurate predictions
The application uses data from the eReefs project, which provides comprehensive environmental monitoring of the Great Barrier Reef. The data includes:
- Biogeochemical parameters: pH, aragonite, temperature, salinity, carbonate, etc.
- Hydrodynamic parameters: wind speed, currents, etc.
Data files are stored in NetCDF format and are processed in the application to provide real-time analysis and visualization.
- R (version 4.0.0 or higher)
- The following R packages:
- shiny
- remotes
- fullPage
- leaflet
- leaflet.extras
- dplyr
- caret
- hydroGOF
- e1071
- sns
- ggplot2
- ggfortify
- tidyverse
- ncdf4
- rbenchmark
- gtools
-
Clone this repository:
git clone https://github.com/your-username/Great-Barrier-Reef_Data-Project.git cd Great-Barrier-Reef_Data-Project -
Install required packages:
install.packages(c("shiny", "leaflet", "leaflet.extras", "dplyr", "caret", "hydroGOF", "e1071", "sns", "ggplot2", "ggfortify", "tidyverse", "ncdf4", "rbenchmark", "gtools", "remotes")) remotes::install_github("RinteRface/fullPage")
-
Download the required NetCDF data files by following the instructions in Coral_data/README.md
- Open R or RStudio
- Set your working directory to the project folder
- Run the app:
shiny::runApp()
Alternatively, use the app.R file:
Rscript -e "options(repos = c(CRAN = 'https://cloud.r-project.org/')); shiny::runApp()"Great-Barrier-Reef_Data-Project/
├── ui.R # User interface definition
├── server.R # Server logic
├── app.R # Combined app file (optional)
├── Coral_data/ # Directory for NetCDF files
│ ├── README.md # Instructions for data files
│ └── *.nc # NetCDF data files
├── www/ # Static assets (if any)
└── README.md # This file
- Navigate to the 'Risk Calculator' tab to access the interactive map
- Filter data by year or enable clustering for clearer visualization
- Click on any point on the map to load its environmental parameters
- Adjust parameters manually to explore different scenarios
- The calculated aragonite value is color-coded to indicate risk level:
- Green: Healthy aragonite levels (≥ 3)
- Orange: Moderate risk (1-3)
- Red: High risk (< 1)
To include more recent data:
- Download additional NetCDF files from the eReefs project
- Place them in the Coral_data directory
- Update the file paths in server.R to include the new files
- Update the year dropdown in ui.R to include new options
- James Agamemnonos
- Adda Ding
- Jasmine Glencross
- Kade Jansen-Daniel
- Shreya Kothari
- Shiyuan Li
- Hangrui Shi
- Simon Um
We would like to thank the Great Barrier Marine Park Authority for their support and guidance throughout this project. We also acknowledge the valuable data provided by the Australian Institute of Marine Science through the eReefs project.
This project is licensed under the MIT License - see the LICENSE file for details.