Create a Leaflet map.

plot_map_leaflet(data, provider = "Esri.OceanBasemap", popup = NULL)

Arguments

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.

Value

HTML widget object.

Examples

plot_map_leaflet(abra) plot_map_leaflet(abra, popup = "datasetID") plot_map_leaflet(abra, popup = head(colnames(abra)))