View source: R/traj_trajLevelMap.R
trajLevelMapStatic | R Documentation |
ggplot2
This function plots back trajectories on a ggplot2
map. This function
requires that data are imported using the openair::importTraj()
function.
It is a ggplot2
implementation of openair::trajLevel()
with many of the
same arguments, which should be more flexible for post-hoc changes.
trajLevelMapStatic(
data,
longitude = "lon",
latitude = "lat",
pollutant,
type = NULL,
smooth = FALSE,
statistic = "frequency",
percentile = 90,
lon.inc = 1,
lat.inc = 1,
min.bin = 1,
.combine = NA,
sigma = 1.5,
alpha = 0.5,
tile.border = NA,
xlim = NULL,
ylim = NULL,
crs = sf::st_crs(4326),
map = TRUE,
map.fill = "grey85",
map.colour = "grey75",
map.alpha = 0.8,
map.lwd = 0.5,
map.lty = 1,
facet = NULL,
...
)
data |
A data frame containing a HYSPLIT trajectory, perhaps accessed
with required A data frame containing HYSPLIT model outputs. If this data were not
obtained using |
latitude , longitude |
The decimal latitude/longitude. default: Column names representing the decimal latitude and longitude. |
pollutant |
Pollutant to be plotted. By default the trajectory height is used. |
type |
A method to condition the default: Used for splitting the trajectories into different groups which can be
selected between using a "layer control" menu. Passed to
|
smooth |
Should the trajectory surface be smoothed? Defaults to |
statistic |
Statistic to use for There are also various ways of plotting concentrations. It is possible to set If If If |
percentile |
The percentile concentration of |
lon.inc , lat.inc |
The longitude and latitude intervals to be used for binning data. |
min.bin |
The minimum number of unique points in a grid cell. Counts
below |
.combine |
When statistic is "SQTBA" it is possible to combine lots of
receptor locations to derive a single map. |
sigma |
For the SQTBA approach |
alpha |
Opacity of the tiles. Must be between |
tile.border |
Colour to use for the border of binned tiles. Defaults to
|
xlim , ylim |
The x- and y-limits of the plot. default: A numeric vector of length two defining the x-/y-limits of the map, passed
to |
crs |
The coordinate reference system (CRS) into which all data should
be projected before plotting. Defaults to latitude/longitude
( |
map |
Draw a base map? default: Draws the geometries of countries under the trajectory paths. |
map.fill |
Colour to use to fill the polygons of the base map. default: See |
map.colour |
Colour to use for the polygon borders of the base map. default: See |
map.alpha |
Transparency of the base map polygons. default: Must be between |
map.lwd |
Line width of the base map polygon borders. default: Any numeric value. |
map.lty |
Line type of the base map polygon borders. default: See |
facet |
Deprecated. Please use |
... |
Arguments passed on to
|
A ggplot2
plot
openair::trajLevel()
trajLevelMap()
for the interactive leaflet
equivalent of
trajLevelMapStatic()
Other static trajectory maps:
trajMapStatic()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.