Description Usage Arguments Value Examples
View source: R/plot_map_leaflet.R
Create a Leaflet map.
1 | plot_map_leaflet(data, provider = "Esri.OceanBasemap", popup = NULL)
|
data |
The data frame. |
provider |
Tile provider, see https://leaflet-extras.github.io/leaflet-providers/preview/. |
popup |
The field to display as a popup or a character vector with as many elements as there are rows, by default the row names are shown. |
HTML widget object.
1 2 3 | plot_map_leaflet(abra)
plot_map_leaflet(abra, popup = "datasetID")
plot_map_leaflet(abra, popup = head(colnames(abra)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.