openair is an R package developed for the purpose ofanalysing air quality data — or more generally atmospheric compositiondata. The package is extensively used in academia, the public andprivate sectors. The project was initially funded by the UK NaturalEnvironment Research Council (NERC), with additionalfunds from the UK Department for Environment Food & Rural Affairs(Defra).
openair has developed over many years to form anextensive toolkit of functions for analysing air quality and atmosphericcomposition data.
Access to data from several hundred UK airpollution monitoring sites through theimportUKAQ() familyof functions.
Time Series & Trend analysis to explore howair quality concentrations vary over time (e.g., throughtimePlot(),timeVariation(), andcalendarPlot()).
Directional analysis to help characterisedifferent sources of pollution, including the creation ofbivariate polar plots usingpolarPlot().
Trajectory analysis to examine NOAA Hysplittrajectories, with plotting (trajPlot()), heatmap(trajLevel()) and clustering (trajCluster())functionality.
Utility functions, such astimeAverage() andselectByDate() to make iteasier to manipulate atmospheric composition data.
Flexible plot conditioning to easily plot databy hour or the day, day of the week, season of the year, etc., throughthetype option available in most functions.

Allopenair functions are fully documented; accessdocumentation using R in your IDE of choice.
?openair::polarPlotDocumentation is also hosted online on thepackagewebsite.
A guide to the openair toolkit can be found in theonlinebook, which contains lots of code snippets, demonstrations offunctionality, and ideas for the application ofopenair’s various functions.
openair can be installed fromCRANwith:
install.packages("openair")You can also install the development version ofopenair from GitHub using{pak}:
# install.packages("pak")pak::pak("openair-project/openair")🏛️openair is primarily maintained byDavid Carslaw.
📃openair is licensed under theMITLicense.
🧑💻 Contributions are welcome from the wider community. See thecontributingguide andcodeof conduct for more information.