forked from davidcarslaw/openair-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.qmd
59 lines (38 loc) · 3.89 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
---
execute:
cache: false
---
# Preface {.unnumbered}
## Hello and welcome {.unnumbered}
<img src="images/plume.png" alt="Cover image" width="304" height="250" align="right" style="margin: 0 0 1em 1em; border-width: 1px; border-style: solid; border-color: white;"/></a>
This document has been a long time coming. The [openair]{.pkg} project started with funding from the UK Natural Environment Research Council (NERC) over 10 years ago. The main aim was to fill a perceived gap in that there was a lack of a dedicated set of *easily accessible, open source* tools for analysing air quality data. At that time R was becoming increasingly popular but far, far less than it is today.
The book is split into broad sections that cover common aspects of air quality data analysis.
- **Data Import** Mostly focused on the easy access of UK air quality data across national and regional networks and accessing global meteorological data.
- **Directional Analysis** Many common functions such as wind and pollution roses, bivariate polar plots and back trajectories.
- **Time Series and Trends** Various ways of considering changes in time and flexible methods for trend assessment.
- **Model Evaluation** Functions such as Taylor Diagrams, common model evaluation statistics and conditional quantile plots.
- **Interactive Maps** Considers effective ways of viewing UK air quality networks and plotting directional analyses on interactive plots; particularly useful for source characterisation.
- **Utility functions** various functions to flexibly carry out time-averaging, correlation analysis and other common tasks of relevance to air pollution.
[openair]{.pkg} does not of course cover every conceivable analysis that users might be interested in, but a selection of flexible methods that should have wide appeal. However, by using R as the basis of development, users can greatly extend the types of analysis in many powerful and innovative ways.
[openair]{.pkg} is a product of the time it was started and used the highly capable [lattice]{.pkg} package for plotting. This was a time before [ggplot2]{.pkg} and the ['tidyverse'](https://www.tidyverse.org). Nevertheless, the package is used extensively around the world (see downloads [here](https://davidcarslaw.github.io/openair/)) and if anything, growing in popularity and use. The original aims of the project have been met in providing tools for academia, the private and public sectors --- all of which continue to use the software.
At some point there will need to be a transition to [ggplot2]{.pkg}; in particular to capitalise on the many extensions available and which [openair]{.pkg} can benefit from.
The reason for writing this book (or manual) in this form i.e. a website rather than a pdf or Word document is convenience for all involved. For me it makes it much easier to keep the information up to date and ensure that the information is reproducible. For the reader it is something that can easily be read and navigated in a browser. Where code is involved --- as it is heavily in this book --- it is very easy to use the copy icon at the top right of each code block to make it easy to copy into R. Finally, it is increasingly the case that information can be plotted interactively, which is not something that can easily be done in a pdf or Word document.
To cite [openair]{.pkg} please use:
Carslaw, D. C., and K. Ropkins. 2012. "openair --- An R package for air quality data analysis." *Environmental Modelling & Software* 27--28 (0): 52--61. <https://doi.org/10.1016/j.envsoft.2011.09.008>.
This document was produced using R version `r getRversion()` and [openair]{.pkg} version `r packageDescription("openair", field = "Version")`.
```{r}
#| label: bibmake
#| include: false
library(tidyverse)
library(openair)
# automatically create a bib database for R packages
knitr::write_bib(
c(
.packages(),
'knitr',
'openair',
'worldmet'
),
'packages.bib'
)
```