Skip to content

v0.7.0

Compare
Choose a tag to compare
@jack-davison jack-davison released this 09 Feb 15:53
· 450 commits to master since this release

openairmaps 0.7.0

  • Added "static" equivalents of all of the polar marker maps written in {ggplot2}. While interactive HTML maps are preferred, the static equivalents may be more appropriate for, e.g., academic publications.

    • The {ggplot2} functions can be identified by "Static" being appended to the function name. For example, polarMap() is the {leaflet} polar plot map, whereas polarMapStatic() is the {ggplot2} equivalent.

    • Currently, "static" versions of the trajectory maps are served by openair::trajPlot() and openair::trajLevel(), but there may be space in future to have ggmap equivalents of these in openairmaps.

  • Added diffMap() and diffMapStatic() which are to openair::polarDiff() what polarMap() and polarMapStatic() are to openair::polarPlot(). Also added addPolarDiffMarkers(), which is the equivalent of addPolarMarkers().

  • Added alpha as an argument to all of the directional analysis polar mapping functions, not just polarMap().

  • Fixed alpha to work on both Windows and MacOS by forcing the use of the "cairo" device to save plots.

  • Polar marker maps and addPolarMarkers() now show a progress bar when creating the markers takes more than a few seconds (most commonly in polarMap() and annulusMap(), particularly with multiple pollutants/control groups).

  • networkMap() can now pass the new year option to importMeta().

  • BREAKING: The fig.width, fig.height, iconHeight and iconWidth arguments have been replaced with d.fig and d.icon. There are two main justifications behind this:

    • This ensures consistency across all of {openairmaps}, making it easier to switch between the static and HTML map types.

    • Polar markers are almost always going to be circular (i.e., width = height) so having one argument will streamline things. If users wish to have non-circular markers, a vector of length two in the form c(width, height) will provide the same functionality.

  • BREAKING: The arguments in addPolarMarkers() have been put in a more sensible order, leading with data, pollutant and fun.

  • BREAKING: The date argument from networkMap() has been replaced by year.