This project processes whale tag data and creates composite time series dashboards for each event segment.
- data/: Contains input CSV files (
mn09_203a.csv
andlog_mn09_203a.csv
). - scripts/: Contains the R scripts for processing data and generating dashboards and analysis plots.
- plots/: Directory where the generated composite dashboards and analysis plots will be saved.
- output/: Directory where the labeled and event data CSV files will be saved.
- README.md: This file.
- .gitignore: Specifies files and directories to ignore in Git.
-
Clone the repository:
git clone https://github.com/GilRaitses/ABC-Project.git cd ABC-Project
-
Ensure you have the necessary R packages installed:
install.packages(c("dplyr", "fuzzyjoin", "tagtools", "tidyr", "purrr", "stringr", "ggplot2", "patchwork", "scales"))
-
Ensure the
data/
directory contains the required CSV files:mn09_203a.csv
log_mn09_203a.csv
-
Create the
plots
andoutput
directories if they don't exist:mkdir -p plots output
-
Generate the Event Data:
- Open R or RStudio.
- Set the working directory to the project folder:
setwd("path/to/ABC-Project")
- Run the
create_composite_dashboards.R
script:source("scripts/create_composite_dashboards.R")
-
Generate the Analysis Plots:
- Run the
analyze_whale_dives.R
script:source("scripts/analyze_whale_dives.R")
- Run the
The output plots will be saved in the plots/
directory. The CSV files will be saved in the data/
directory.
Include the following in your .gitignore
to ignore the output files and other unnecessary files:
output/
plots/
*.RData
*.Rhistory