This function creates interactive maps that will be displayed in RStudio's 'Viewer' tab.
Typical usage would be to use the parameter
argument to display pm25
values:
"pm2.5"
synoptic_leaflet(
synoptic = NULL,
parameter = "pm2.5",
paletteName = NULL,
radius = 10,
opacity = 0.8,
maptype = "terrain",
extraVars = NULL
)
Synoptic metadata ~_synoptic object.
Value to plot, e.g. pm25
.
RColorBrewer palette name to use when parameter
is something other than:
"pm2.5"
"humidity
"temperature
Radius (pixels) of monitor circles.
Opacity of monitor circles.
Optional name of leaflet ProviderTiles to use, e.g. terrain
.
Character vector of additional column names to be shown in leaflet popups.
A leaflet "plot" object which, if not assigned, is rendered in Rstudio's 'Viewer' tab.
The maptype
argument is mapped onto leaflet "ProviderTile"
names. Current mappings include:
-- "OpenStreetMap"
-- "Esri.WorldImagery"
-- "Esri.WorldTopoMap"
-- "Stamen.Toner"
If a character string not listed above is provided, it will be used as the underlying map tile if available. See https://leaflet-extras.github.io/leaflet-providers/ for a list of "provider tiles" to use as the background map.
The paletteName
parameter can take the name of an RColorBrewer
paeltte, e.g. "BuPu"
or "Greens"
.