v0.7.0
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, whereaspolarMapStatic()
is the{ggplot2}
equivalent. -
Currently, "static" versions of the trajectory maps are served by
openair::trajPlot()
andopenair::trajLevel()
, but there may be space in future to haveggmap
equivalents of these inopenairmaps
.
-
-
Added
diffMap()
anddiffMapStatic()
which are toopenair::polarDiff()
whatpolarMap()
andpolarMapStatic()
are toopenair::polarPlot()
. Also addedaddPolarDiffMarkers()
, which is the equivalent ofaddPolarMarkers()
. -
Added
alpha
as an argument to all of the directional analysis polar mapping functions, not justpolarMap()
. -
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 inpolarMap()
andannulusMap()
, particularly with multiple pollutants/control groups). -
networkMap()
can now pass the newyear
option toimportMeta()
. -
BREAKING: The
fig.width
,fig.height
,iconHeight
andiconWidth
arguments have been replaced withd.fig
andd.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 withdata
,pollutant
andfun
. -
BREAKING: The
date
argument fromnetworkMap()
has been replaced byyear
.