plot_map_leaflet: Create a Leaflet map.

View source: R/plot_map.R

plot_map_leafletR Documentation

Create a Leaflet map.

Description

Create a Leaflet map.

Usage

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)))

iobis/obistools documentation built on March 19, 2024, 6:27 a.m.