-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.qmd
113 lines (87 loc) · 3.71 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
title: "Exploratory data analysis"
author:
- name: Marcus Beck, <mbeck@tbep.org>
institute: "Tampa Bay Estuary Program"
date: "`r Sys.Date()`"
format:
html:
theme: cosmo
css: styles.css
code-tools:
source: https://github.com/tbep-tech/temp-manu/blob/main/index.qmd
execute:
echo: false
warning: false
filters:
- lightbox
lightbox: auto
---
```{r}
library(tidyverse)
library(lubridate)
library(here)
```
# Complete record
This plot shows the significant increasing or decreasing salinity or temperature trends for all long-term monitoring stations (EPCHC) in Tampa Bay for the entire period of record (1974-2022) and sampling location in the water column. Seasonal Mann-Kendall tests are used.
```{r}
#| out-width: 70%
knitr::include_graphics(here('figseda/sktall.png'))
```
# By month
These plots show significant increasing or decreasing temperature or salinity trends by month for long-term monitoring stations in Tampa Bay. The plots are organized by parameter and sampling location in the water column. Mann-Kendall tests are used.
::: panel-tabset
```{r}
#| results: asis
fls <- list.files(here('figseda'), 'skt_', full.names = F)
mos <- fls %>%
basename %>%
gsub('^skt_|\\.png', '', .) %>%
as.numeric() %>%
sort() %>%
month(label = T) %>%
as.character()
for(mo in seq_along(mos)){
cat('## ', mos[mo], '\n\n')
chnk <- paste0('![](figseda/', fls[mo], '){width=70%}\n')
cat(chnk)
cat('\n\n')
}
```
:::
# Month summary by bay segment
These plots show the percent of stations by month and bay segment that had significant decreasing salinity trends or increasing temperature trends. Tabs are organized by top and bottom water column measurements. The summaries are based on results for the monthly trend tests in the previous section. Increasing trends for salinity and decreasing trends for temperature are not shown.
::: panel-tabset
```{r}
#| results: asis
#| out-width: 80%
fls <- list.files(here('figseda'), 'segsum_', full.names = F) %>%
rev
locs <- fls %>%
basename %>%
gsub('^segsum_|\\.png', '', .)
for(loc in seq_along(locs)){
cat('## ', locs[loc], '\n\n')
chnk <- paste0('![](figseda/', fls[loc], ')\n')
cat(chnk)
cat('\n\n')
}
```
:::
# Threshold exceedances
::: panel-tabset
## Temperature
Temperature exceedences over time were estimated for major bay segments by using daily predictions from a Generalized Additive Model applied to each station. An example of a model is shown in the first plot. The date of the first and last instance each year for each of three temperature thresholds (29, 30, and 31 degrees C) were estimated. The total number of days in each year when the daily temperature was above the same thresholds were also estimated. The station level results were aggregated within each bay segment to produce the plots below.
```{r}
knitr::include_graphics(here('figseda/tempgamex.png'))
knitr::include_graphics(here('figseda/tempexceed.png'))
knitr::include_graphics(here('figseda/tempcount.png'))
```
## Salinity
Salinity exceedences below thresholds over time were estimated for major bay segments by using daily predictions from a Generalized Additive Model applied to each station. An example of a model is shown in the first plot. The date of the first and last instance each year for each of three salinity thresholds (20, 25, and 30 psu) were estimated. The total number of days in each year when the daily salinity was below the same thresholds were also estimated. The station level results were aggregated within each bay segment to produce the plots below.
```{r}
knitr::include_graphics(here('figseda/saligamex.png'))
knitr::include_graphics(here('figseda/saliexceed.png'))
knitr::include_graphics(here('figseda/salicount.png'))
```
:::