-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Qmd
57 lines (41 loc) · 2.1 KB
/
README.Qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
format: gfm
---
<!-- README.md is generated from README.Qmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# Estimating trends in phenology
<!-- badges: start -->
[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
<!-- badges: end -->
The goal of this project is to estimate spatial and temporal trends in phenology in the Northeastern US using [PRISM](https://prism.oregonstate.edu/) temperature data.
This analytical pipeline downloads daily data, calculates growing degree days (GDD) for each day, and then finds the day of year (DOY) that certain threshold GDD are reached for this region.
It then uses DOY as a response variable in a series of generalized additive models to estimate spatio-temporal trends.
Report of work in progress: <https://usa-npn.github.io/thermal-trends/spatial-trends-report.html>
## Reproducibility
### `renv`
This project uses [`renv`](https://rstudio.github.io/renv/articles/renv.html) for package management.
When opening this repo as an RStudio Project for the first time, `renv` should automatically install itself and prompt you to run `renv::restore()` to install all package dependencies.
### `targets`
This project uses the [`targets` package](https://docs.ropensci.org/targets/) for workflow management.
Run `targets::tar_make()` from the console or from the HPC run `sbatch run.sh` to run the workflow and reproduce all results.
The graph below shows the workflow:
```{r}
#| echo: false
#| message: false
#| warning: false
#| results: asis
cat(
"```mermaid",
targets::tar_mermaid(targets_only = TRUE, reporter = "silent"),
"```",
sep = "\n"
)
#this should display correctly on GitHub, or code can be pasted into https://mermaid.live
```
------------------------------------------------------------------------
Developed in collaboration with the University of Arizona [CCT Data Science](https://datascience.cct.arizona.edu/) group.