| mn_map | R Documentation |
Draws any map from this package, or a map joined to your data, with sensible defaults: a projection suited to Mongolia, a colour-blind friendly palette, grey for missing values, optional labels and surroundings, and the data attribution as a caption. The result is a normal ggplot, so you can add layers, scales and themes to it.
mn_map(
x = NULL,
fill = NULL,
trans = "identity",
label = FALSE,
context = FALSE,
crs = NULL,
lang = NULL,
caption = TRUE,
title = NULL,
label_size = 2.6
)
x |
An |
fill |
Column to colour the polygons by (unquoted), or a single
colour such as |
trans |
Transformation of a numeric |
label |
|
context |
If |
crs |
Projection. |
lang |
Language of labels when |
caption |
|
title |
Optional plot title. |
label_size |
Text size of labels. |
A ggplot object.
Other mapping helpers:
mn_aimag_grid,
mn_crs(),
mn_label_points(),
mn_leaflet(),
theme_mn()
mn_map()
mn_map(mn_aimags(), fill = area_km2, label = TRUE)
mn_map(mn_khoroos(district = "Bayangol"), label = TRUE)
pop <- mn_example_population[mn_example_population$Year == 2025, ]
pop_map <- mn_join(pop, "Region", level = "aimag")
mn_map(pop_map, fill = value, trans = "log10", title = "Population, 2025")
mn_map(mn_landcover())
mn_map(mn_elevation()) + ggplot2::geom_sf(data = mn_aimags(), fill = NA, colour = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.