openairmaps: tools to create maps of air pollution data the openairmaps logo. It shows a stylised pollution rose overlaid with a typical teardrop shaped map marker.

R-CMD-check CRAN status

The main goal of {openairmaps} is to combine the robust analytical methods found in {openair} on a range of dynamic and static maps. Core functionality includes visualising UK AQ networks (networkMap()), putting “polar directional markers” on maps (e.g., polarMap()) and overlaying HYSPLIT trajectories on maps (e.g., trajMap()), all using the {leaflet} package. Static equivalents of most functions are also available for insertion into traditional reports and academic articles.

Installation

You can install the release version of {openairmaps} from CRAN with:

install.packages("openairmaps")

You can install the development version of {openairmaps} from GitHub with:

# install.packages("pak")
pak::pak("davidcarslaw/openairmaps")

Documentation

All functions in {openairmaps} are thoroughly documented. The openairmaps website contains all documentation and a change log of new features. There are also many examples of {openairmaps} functionality the openair book, which goes into great detail about its various functions.

An assembly of openairmaps maps, all of which are screenshots of dynamic leaflet maps. Top right: bivaraite polar plots. Bottom right: HYSPLIT trajectories. Right: markers displaying the locations of UK AURN sites.

The {openair} toolkit