polarMapStatic | R Documentation |
Static direction analysis mapping functions have been deprecated in favour
of combined functions (e.g., polarMap()
), which present a more
consistent, unified API for users to simply swap between the two output
formats.
polarMapStatic(
data,
pollutant = NULL,
x = "ws",
limits = "free",
upper = "fixed",
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
facet = NULL,
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
diffMapStatic(
before,
after,
pollutant = NULL,
limits = "free",
x = "ws",
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
facet = NULL,
cols = c("#002F70", "#3167BB", "#879FDB", "#C8D2F1", "#F6F6F6", "#F4C8C8", "#DA8A8B",
"#AE4647", "#5F1415"),
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
annulusMapStatic(
data,
pollutant = NULL,
period = "hour",
facet = NULL,
limits = "free",
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
windroseMapStatic(
data,
ws.int = 2,
breaks = 4,
facet = NULL,
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
pollroseMapStatic(
data,
pollutant = NULL,
statistic = "prop.count",
breaks = NULL,
facet = NULL,
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
percentileMapStatic(
data,
pollutant = NULL,
percentile = c(25, 50, 75, 90, 95),
intervals = "fixed",
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
facet = NULL,
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
freqMapStatic(
data,
pollutant = NULL,
statistic = "mean",
breaks = "free",
latitude = NULL,
longitude = NULL,
crs = 4326,
provider = "osm",
facet = NULL,
cols = "turbo",
alpha = 1,
key = FALSE,
facet.nrow = NULL,
d.icon = 150,
d.fig = 3,
...
)
data |
Input data table with pollutant, wind, and geo-spatial information. required | scope: dynamic & static A data frame. The data frame must contain the data to plot the directional
analysis marker, which includes wind speed ( |
pollutant |
Pollutant name(s). required | scope: dynamic & static The column name(s) of the pollutant(s) to plot. If multiple pollutants are
specified the
Multiple |
x |
The radial axis variable. default: The column name for the radial axis variable to use in
|
limits |
Specifier for the plot colour scale bounds. default: One of:
|
upper |
Specifier for the polar plot radial axis upper boundary. default: One of:
|
latitude , longitude |
The decimal latitude(Y)/longitude(X). default: Column names representing the decimal latitude and longitude (or other Y/X
coordinate if using a different |
crs |
The coordinate reference system (CRS). default: The coordinate reference system (CRS) of the data, passed to
|
provider |
The basemap(s) to be used. default: The base map(s) to be used beneath the polar markers. If not provided, will
default to
There is some overlap in static and dynamic providers. For example,
|
facet |
Passed to the |
cols |
Colours to use for plotting. default: The colours used for plotting, passed to |
alpha |
Transparency value for polar markers. default: A value between 0 (fully transparent) and 1 (fully opaque). |
key |
Draw individual marker legends? default: Draw a key for each individual marker? Potentially useful when |
facet.nrow |
Passed to the |
d.icon |
The diameter of the plot on the map in pixels. default: This will affect the size of the individual polar markers. Alternatively, a
vector in the form |
d.fig |
The diameter of the plots to be produced using default: This will affect the resolution of the markers on the map. Alternatively, a
vector in the form |
... |
Passed to the polar plotting function |
before |
A data frame that represents the "before" case. See
|
after |
A data frame that represents the "after" case. See |
period |
Temporal period for radial axis. default: Options are "hour" (the default, to plot diurnal variations), "season" to plot variation throughout the year, "weekday" to plot day of the week variation and "trend" to plot the trend by wind direction. |
ws.int |
The wind speed interval of the colour axis. default: The wind speed interval. Default is 2 m/s but for low met masts with low mean wind speeds a value of 1 or 0.5 m/s may be better. |
breaks |
Specifier for the number of breaks of the colour axis. default: Most commonly, the number of break points for wind speed in
|
statistic |
The statistic to be applied to each data bin in the plot default: Options currently include |
percentile |
The percentile values for the colour scale bin. default: The percentile value(s) to plot using |
intervals |
Specifier for the percentile rose radial axis intervals. default: One of:
|
a ggplot2
object using ggplot2::coord_sf()
coordinates with a
ggspatial
basemap
polarMap()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.