This function creates interactive maps that will be displayed in RStudio's 'Viewer' tab.
table_leaflet( locationTbl = NULL, maptype = "terrain", extraVars = NULL, locationOnly = FALSE, ... )
locationTbl | Tibble of known locations. |
---|---|
maptype | Optional name of leaflet ProviderTiles to use, e.g. |
extraVars | Character vector of addition |
locationOnly | Logical specifying whether to check for all standard columns. |
... | Additional arguments passed to |
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:
"roadmap" -- "OpenStreetMap"
"satellite" -- "Esri.WorldImagery"
"terrain" -- "Esri.WorldTopoMap"
"toner" -- "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.