Learn R Programming

openairmaps: tools to create maps of air pollution data

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.

The {openair} toolkit

  • {openair}: Import, analyse, and visualise air quality and atmospheric composition data.

  • {worldmet}: Access world meteorological data from NOAA’s Integrated Surface Database.

  • {openairmaps}: Visualise air quality data on interactive and static maps.

  • {deweather}: Use machine learning to remove the effects of meteorology on air quality time series.

Copy Link

Version

Install

install.packages('openairmaps')

Monthly Downloads

989

Version

0.9.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Jack Davison

Last Published

May 19th, 2024

Functions in openairmaps (0.9.0)

openairmaps-package

openairmaps: Create Maps of Air Pollution Data
convertPostcode

Convert a UK postcode to a latitude/longitude pair
networkMap

Create a leaflet map of air quality measurement network sites
diffMap

Bivariate polar 'difference' plots on dynamic and static maps
buildPopup

Build a Complex Popup for a Leaflet Map
freqMap

Polar frequency plots on dynamic and static maps
addTrajPaths

Add trajectory paths to leaflet map
annulusMap

Polar annulus plots on dynamic and static maps
addPolarMarkers

Add polar markers to leaflet map
polarMapStatic

Deprecated static directional analysis functions
polar_data

Example data for polar mapping functions
trajLevelMapStatic

Trajectory level plots in ggplot2
trajLevelMap

Trajectory level plots in leaflet
searchNetwork

Geographically search the air quality networks made available by openair::importMeta()
percentileMap

Percentile roses on dynamic and static maps
quickTextHTML

Automatic text formatting for openairmaps
polarMap

Bivariate polar plots on dynamic and static maps
trajMap

Trajectory line plots in leaflet
pollroseMap

Pollution roses on dynamic and static maps
%>%

Pipe operator
traj_data

Example data for trajectory mapping functions
windroseMap

Wind roses on dynamic and static maps
trajMapStatic

Trajectory line plots in ggplot2