| mn_leaflet | R Documentation |
Shows any map from this package, or your joined data, on an interactive web map with a basemap, hover labels and click pop-ups.
mn_leaflet(
x = NULL,
fill = NULL,
popup = NULL,
lang = NULL,
tiles = "CartoDB.Positron",
opacity = 0.7
)
x |
An |
fill |
Column to colour by (unquoted), or a single colour. |
popup |
Column with pop-up text (unquoted). By default the pop-up
shows the English and Mongolian names, the code and the |
lang |
Language of the hover labels: |
tiles |
A basemap from leaflet::providers, such as
|
opacity |
Fill opacity between 0 and 1. |
A leaflet htmlwidget.
Other mapping helpers:
mn_aimag_grid,
mn_crs(),
mn_label_points(),
mn_map(),
theme_mn()
mn_leaflet()
mn_leaflet(mn_khoroos(), fill = area_km2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.