refdb_plot_map {refdb} | R 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)
[Package refdb version 0.1.1 Index]