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.
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. This can be done by
pasting the text below into R.
install.packages(c("zoo", "reshape", "plyr", "RColorBrewer", "proto"))
If there are problems with the automatic download of these packages, see
openair
has been correctly installed, try some
of the examples below. In case of any problems, contact David Carslaw
# 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