openair
contains collection of functions to analyse air pollution
data. Typically it is expected that data are hourly means, although most
functions consider other time periods. The principal aim to make
available analysis techniques that most users of air quality data and
model output would not normally have access to. The functions consist of
those developed by the authors and a growing number from other
researchers.
The package also provides access to a wide range of data
sources including the UK Automatic Urban and Rural Network (AURN),
networks run by King's College London (e.g. the LAQN), the Scottish Air
Quality Network (SAQN) and the European Environment Agency
airbase database with over 8,000 sites.
The package has a number of requirements for input data and these are
discussed in the manual (available on the openair
website at
Date
or POSIXct
format), that wind speed is represented as
`ws' and that wind direction is `wd'.
Most functions work in a very straightforward way, but offer many
options for finer control and perhaps more in-depth analysis.
The openair
package depends on several other packages written by
other people to function properly.
To ensure that these other packages are available, they need to be
installed, and this requires a connection to the internet. Other
packages required come with the R base system. If there are problems
with the automatic download of these packages, see
openair
functions. The openair
manual
provides advice on these issues (available on the website).
To check to see if openair
has been correctly installed, try some
of the examples below.# load example data from package
data(mydata)
# summarise the data in a compact way
summaryPlot(mydata)
# traditional wind rose
windRose(mydata)
# basic plot
polarPlot(mydata, pollutant = "nox")
Run the code above in your browser using DataLab