refdb_plot_map: Plot an interactive map

View source: R/refdb_plots.R

refdb_plot_mapR Documentation

Plot an interactive map

Description

This functions generate an interactive maps showing the location of the records of a reference database. Note that only records with latitude and longitude data will be displayed.

Usage

refdb_plot_map(x)

Arguments

x

a reference database.

Value

An interactive map object from the leaflet package.

Examples

lib <- read.csv(system.file("extdata", "baetidae_bold.csv", package = "refdb"))
lib <- refdb_set_fields_BOLD(lib)
lib <- refdb_set_fields(lib, latitude = "lat", longitude = "lon")
refdb_plot_map(lib)


refdb documentation built on Sept. 22, 2022, 5:07 p.m.