The openair book
Tools for air quality data analysis
31 July 2020
Hello and welcome
This document has been a long time coming. The openair project started with funding from the UK Natural Environment 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.
openair is a product of the time it was started and used the highly capable lattice package for plotting. This was a time before ggplot2 and the ‘tidyverse’. Nevertheless, the package is used extensively around the world (see downloads here) 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; in particular to capitalise on the many extensions available and which openair 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.
This book will be developed over the coming months.
To cite openair please use Carslaw and Ropkins (2012).
This document was produced using R version 4.0.2 and openair version 2.7-6.
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.