| map_points | R Documentation |
Creates an interactive map for a data.frame containing point coordinates, optionally colored by a selected variable.
map_points(
data,
value = NULL,
lon = "lon",
lat = "lat",
crs = 4326,
at = NULL,
layer_name = NULL,
...,
basemaps = c("Esri.WorldGrayCanvas", "OpenStreetMap", "Esri.WorldImagery")
)
data |
A data.frame containing columns for longitude and latitude. |
value |
A string giving the name of the column in |
lon |
A string with the name of the column containing longitude
values. Default is |
lat |
A string with the name of the column containing latitude
values. Default is |
crs |
Integer; EPSG code for the coordinate reference system.
Default is |
at |
Optional numeric vector; breakpoints used for visualization. |
layer_name |
Optional layer name passed to |
... |
Additional arguments passed to |
basemaps |
Character vector of basemap providers. The first provider
is shown initially; the others are available in the layer control.
Defaults to |
An interactive mapview object.
## Not run:
map_points(Groningen, value = "amount")
map_points(Groningen, value = "amount", basemaps = "OpenStreetMap")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.