View source: R/funs-add_if_exists.R
addIfExistMarkers | R Documentation |
Add markers to a leaflet map if there is sufficient data.
addIfExistMarkers(map = NULL, data, map_format = "pdf", ...)
map |
a map widget object created from leaflet() |
data |
the data object from which the argument values are derived. |
... |
additional arguments passed to leaflet::addCircleMarkers() or ggplot2::geom_sf() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.