-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.qmd
162 lines (113 loc) · 4.58 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
title: "Introduction to MassWateR"
author:
- name: Dr. Marcus Beck, <[email protected]>
institute: "Tampa Bay Estuary Program"
date: "09/16/2022"
format:
revealjs:
logo: figure/logo.png
transition: slide
footer: "<https://massbays-tech.github.io/MassWateR>"
theme: styles.scss
link-external-icon: true
linkcolor: "#64C147"
link-external-newwindow: true
execute:
echo: true
---
```{r}
#| echo: false
#| include: false
library(knitr)
library(MassWateR)
# results data
respth <- system.file('extdata/ExampleResults.xlsx', package = 'MassWateR')
resdat <- readMWRresults(respth, warn = F, runchk = F)
# dqo accuracy data
accpth <- system.file('extdata/ExampleDQOAccuracy.xlsx', package = 'MassWateR')
accdat <- readMWRacc(accpth, runchk = F)
# dqo completeness data
frecompth <- system.file('extdata/ExampleDQOFrequencyCompleteness.xlsx', package = 'MassWateR')
frecomdat <- readMWRfrecom(frecompth, runchk = F)
# site metadata
sitpth <- system.file('extdata/ExampleSites.xlsx', package = 'MassWateR')
sitdat <- readMWRsites(sitpth, runchk = F)
# wqx metadata
wqxpth <- system.file('extdata/ExampleWQX.xlsx', package = 'MassWateR')
wqxdat <- readMWRwqx(wqxpth)
```
------------------------------------------------------------------------
## WHAT IS MASSWATER?
::: columns
::: {.column width="60%"}
An R package for working with Massachusetts surface water quality data
- Summarize quality control checks and create reports
- Evaluate outliers
- Plot trends by site, date
- Create maps
- Format results for upload to WQX
:::
::: {.column width="40%"}
![](figure/logo.png){fig-align="center" width="250px"}
:::
:::
------------------------------------------------------------------------
## WHAT IS MASSWATER?
A workflow to solve your data woes!
![](figure/workflow.PNG){fig-align="center"}
------------------------------------------------------------------------
## WEBSITE
Installation instructions, function help files, vignettes!
![](figure/website.png){fig-align="center"}
------------------------------------------------------------------------
## REQUIRED DATA
- [Water quality data results file](https://massbays-tech.github.io/MassWateR/MassWateR_Results_Template.xlsx){style="color: #64C147"}
- Data quality objective files ([accuracy](https://massbays-tech.github.io/MassWateR/MassWateR_DQOAccuracy_Template.xlsx){style="color: #64C147"}, [frequency, completeness](https://massbays-tech.github.io/MassWateR/MassWateR_DQOFreqComp_Template.xlsx){style="color: #64C147"})
- [Site metadata](https://massbays-tech.github.io/MassWateR/MassWateR_Sites_Template.xlsx){style="color: #64C147"} (location, site groups, etc.)
- [WQX metadata](https://massbays-tech.github.io/MassWateR/MassWateR_WQXMeta_Template.xlsx){style="color: #64C147"}
::: callout-note
## Templates
All data must be formatted using available templates, which you are already have! The package includes automated data checks to verify the correct format.
:::
------------------------------------------------------------------------
## QC REVIEW
```{r}
#| eval: false
qcMWRreview(res = resdat, acc = accdat, frecom = frecomdat, output_dir = getwd())
```
![](figure/qcreport.png){fig-align="center" fig-height="80%" width="579"}
[view report](supp/qcreview.pdf){style="color: #64C147"}
------------------------------------------------------------------------
## OUTLIER REVIEW
```{r}
anlzMWRoutlier(res = resdat, param = "DO", acc = accdat, group = "month")
```
------------------------------------------------------------------------
## SEASONAL ANALYSIS
```{r}
anlzMWRseason(res = resdat, param = "DO", acc = accdat, thresh = "fresh", group = "month", type = "jitterbar")
```
------------------------------------------------------------------------
## TIME-SERIES ANALYSIS
```{r}
anlzMWRdate(res = resdat, param = "DO", acc = accdat, thresh = "fresh", group = "site", site = c("ABT-026", "ABT-077"))
```
------------------------------------------------------------------------
## SITE ANALYSIS
```{r}
anlzMWRsite(res = resdat, param = "DO", acc = accdat, thresh = "fresh", type = "bar", confint = T)
```
------------------------------------------------------------------------
## MAP ANALYSIS
```{r}
anlzMWRmap(res = resdat, param = "DO", acc = accdat, sit = sitdat, addwater = "medium", warn = F)
```
------------------------------------------------------------------------
## WQX FORMATTING
```{r}
#| eval: false
tabMWRwqx(res = resdat, acc = accdat, sit = sitdat, wqx = wqxdat, output_dir = getwd())
```
![](figure/wqxtab.PNG){fig-align="center" fig-height="80%"}
[view output](supp/wqxtab.xlsx){style="color: #64C147"}