Learn R Programming

MazamaLocationUtils (version 0.2.0)

table_leafletAdd: Add to a leaflet interactive map for known locations

Description

This function adds interactive maps that will be displayed in RStudio's 'Viewer' tab.

Usage

table_leafletAdd(
  map = NULL,
  locationTbl = NULL,
  extraVars = NULL,
  locationOnly = FALSE,
  ...
)

Arguments

map

Leaflet map.

locationTbl

Tibble of known locations.

extraVars

Character vector of addition locationTbl column names to be shown in leaflet popups.

locationOnly

Logical specifying whether to check for all standard columns.

...

Additional arguments passed to leaflet::addCircleMarker().

Value

A leaflet "plot" object which, if not assigned, is rendered in Rstudio's 'Viewer' tab.