-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.Rmd
73 lines (50 loc) · 3.21 KB
/
README.Rmd
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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# wql : Exploring Water Quality Monitoring Data
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/wql)](https://cran.r-project.org/package=wql)
## Installation
### Stable version from CRAN
```{r, eval=FALSE}
install.packages("wql")
```
### or development version from GitHub
```{r, eval=FALSE}
install.packages('devtools') # package devtools needed
devtools::install_github("jsta/wql")
```
## Motivation
The main purpose of wql is to explore seasonal time series through plots and nonparametric trend tests. It was created originally to examine water quality data sets (hence, wql) but is suitable as a more general purpose set of tools for looking at annual or seasonal time series.
One of the more tedious tasks in exploring environmental data sets is creating usable time series from the original complex data sets, especially when you want many series at will that group data in different ways. So wql also provides a way of transforming data sets to a common format that then allows a diversity of time series to be created quickly. A few functions are specific to the fields of limnology and oceanography.
The plots are designed for easy use, not for publication-quality graphs. Nonetheless, extensive customization is possible by passing options through ..., adding annotations in the case of base graphics, and adding layers in the case of ggplot2 objects.
Two functions are used mainly for preparing the times series:
* a function that transforms incoming data to a common data structure in the form of the WqData class
* a function that easily prepares time series objects from this class
The WqData class can be easily adapted to non-aquatic data. Obviously, the depth field can be used for elevation in atmospheric studies. But more generally, the site and depth fields can be used for many two-way classifications and don't need to refer to spatial location.
Some of the time series functions include:
* a variety of plots to examine changes in seasonal patterns
* nonparametric trend tests
* time series interpolation and related manipulations
* a simple decomposition of a series into different time scales
* phenological analyses
* the use of empirical orthogonal functions to detect multiple independent
mechanisms underlying temporal change
A few functions are specialized for the aquatic sciences:
* converting between oxygen concentrations and percent saturation
* converting between salinity and conductivity
## Usage
The capabilities of wql are more fully explained in the accompanying vignette: [wql: Exploring environmental monitoring data](https://jsta.github.io/wql/articles/wql-package.html)
## References
This package is an independent fork of the archived CRAN package `wq`. To date, improvements have been focused on improving the documentation and code readability.
```{r echo=FALSE}
citation("wql")
```