Environmental Data Analysis
Source:vignettes/environmental-surveillance.Rmd
environmental-surveillance.Rmd
library(mongolstats)
library(mongolmaps)
library(dplyr)
library(ggplot2)
library(tidyr)
library(stringr)
# Checked teaching helpers are shipped with the package and can be inspected.
source(system.file("examples", "analysis-helpers.R", package = "mongolstats"), local = TRUE)
source(system.file("examples", "plot-style.R", package = "mongolstats"), local = TRUE)Overview
Air pollution is a leading environmental health risk in Mongolia, above all in Ulaanbaatar in winter. NSO publishes measurements from air quality monitoring stations, river and lake water quality stations, and weather stations that count dust days. Station data describe the air or water at one place; they are a starting point for exposure assessment, not a measure of what people breathe or drink.
This guide shows how to:
- Track fine particulate matter (PM2.5) and sulphur dioxide (SO₂) at Ulaanbaatar stations
- Compare rounded annual concentrations with a dated reference benchmark
- Look at river and lake water quality
- Map dust days across the country
Air Quality Monitoring
About the air quality tables
- Annual table (
DT_NSO_2024_135V01): annual mean concentration by station and pollutant, selected byYear.- Monthly station tables (
DT_NSO_2400_015V2for NO₂,DT_NSO_2400_015V5for PM2.5): for each station and month, the monthly average, the monthly maximum, a measurement-count field (“MN by day”, whose meaning needs pollutant-specific verification), and the percentage of days above the air quality standard. Month codes count back from the latest month, so select months by their"YYYY-MM"labels, listed withnso_table_periods().The NSO catalogue reuses the ids
DT_NSO_2400_015V1(SO₂),V3(CO) andV4(PM10) for unrelated tables in another folder, so those monthly series cannot be fetched by id alone (mongolstats warns about the ambiguity). This vignette uses a snapshot bundled with mongolstats for monthly SO₂.NSO reports concentrations in mg/m³. We convert them to µg/m³, the unit used by the WHO guidelines (1 mg/m³ = 1,000 µg/m³). Annual means are rounded to 0.01 mg/m³ (10 µg/m³), which is coarse next to standards of 20–40 µg/m³.
Most Polluted Stations
We use a fixed 2024 teaching example and select up to ten stations with the highest reported annual PM2.5 among the listed Ulaanbaatar stations. This is not a current city-wide exposure ranking. Exact zeros in later source releases need verification and must not automatically be reclassified as missing.
air_annual_source <- analysis_air_source(
fetch = function() nso_data("DT_NSO_2024_135V01", list(Year = "2024"), labels = "en"),
cached = function() {
utils::read.csv(
system.file("extdata", "air_annual_cached.csv", package = "mongolstats"),
check.names = FALSE, stringsAsFactors = FALSE, fileEncoding = "UTF-8"
)
},
required = c("Year_en", "Station location_en", "Indicator_en", "value")
)
air_annual_raw <- analysis_one_year(air_annual_source$data, "2024")
annual_status <- nso_value_status(air_annual_source$data)
air_annual <- air_annual_raw
air_annual <- air_annual |>
filter(!is.na(value)) |>
mutate(
Station = str_trim(`Station location_en`),
Pollutant = str_trim(Indicator_en),
ug_m3 = value * 1000 # mg/m3 to ug/m3
)
# Ulaanbaatar stations
ub_stations <- c(
"Misheel-Expo center", "West crossroad", "1st micro district",
"13th micro district", "32nd Toirog", "Ofitseruudiin ordon",
"Kharkhorin market", "Urgakh naran micro district", "Dambdarjaa",
"Khailaast", "Tolgoit", "Zuragt", "Amgalan", "Nisekh",
"Tavan buudal", "Bayankhoshuu", "Sharkhad", "100 ail"
)
eligible_stations <- air_annual |>
filter(Station %in% ub_stations, str_detect(Pollutant, fixed("PM2.5")))
analysis_keys(eligible_stations, "Station")
top_stations <- eligible_stations |>
slice_max(ug_m3, n = 10, with_ties = FALSE) |>
pull(Station)
top_stations
#> [1] "Khailaast" "Zuragt" "1st micro district"
#> [4] "West crossroad" "Tolgoit" "Amgalan"
#> [7] "Nisekh" "13th micro district"Annual source: Live NSO response, observation year 2024. Of 8 eligible stations, 8 are selected. Bundled snapshots have no recorded retrieval date and do not retain original source symbols; see the provenance guide.
PM2.5: Monthly Trends
Fine particulate matter (PM2.5) is the air pollutant with the strongest evidence of harm: long-term exposure raises the risk of heart and lung disease, lung cancer, and death. We keep only months with measurements on at least 75% of days, an illustrative completeness rule. Confirm the source’s measurement-count definition and applicable monitoring protocol before treating it as an official validity rule.
# Labels of the months from `from` onward
recent_months <- function(tbl, from = "2021-01-01") {
periods <- nso_table_periods(tbl)
periods$label[!is.na(periods$date) & periods$date >= as.Date(from)]
}
air_cached <- utils::read.csv(
system.file("extdata", "air_monthly_cached.csv.gz", package = "mongolstats"),
check.names = FALSE, stringsAsFactors = FALSE, fileEncoding = "UTF-8"
)
pm25_source <- analysis_air_source(
fetch = function() {
nso_data(
"DT_NSO_2400_015V5",
list(Month = recent_months("DT_NSO_2400_015V5")),
labels = "en"
)
},
cached = function() filter(air_cached, str_detect(Indicator_en, fixed("PM2.5"))),
required = c("Location_en", "Month_en", "Indicator_en", "value")
)
pm25_monthly <- pm25_source$data
pm25_status <- nso_value_status(pm25_monthly)
# One row per station and month, with one column per measure
reshape_monthly <- function(data) {
data <- data |>
mutate(
Station = str_trim(Location_en),
measure = str_extract(Indicator_en, "(Average|Maximum|MN by day|Exceeding percent of AQS)$"),
date = analysis_month_dates(Month_en)
) |>
filter(Station %in% top_stations, !is.na(measure)) |>
select(Station, date, measure, value)
analysis_keys(data, c("Station", "date", "measure"))
data |>
pivot_wider(names_from = measure, values_from = value) |>
rename(
average = Average, maximum = Maximum,
days_measured = `MN by day`, pct_days_above = `Exceeding percent of AQS`
) |>
mutate(average = average * 1000, maximum = maximum * 1000) # mg/m3 to ug/m3
}
pm25 <- reshape_monthly(pm25_monthly) |>
filter(date >= as.Date("2021-01-01")) |>
mutate(
complete = analysis_monitoring_days(days_measured, date),
pct_days_above = if_else(is.finite(pct_days_above) & between(pct_days_above, 0, 100), pct_days_above, NA_real_)
)
pm25_complete <- filter(pm25, complete, !is.na(average))
# For line charts: every station-month, with excluded months as gaps (NA)
# so lines break instead of joining across missing data
pm25_lines <- pm25 |>
complete(Station = top_stations, date = seq(min(date), max(date), by = "month")) |>
mutate(average = if_else(complete %in% TRUE, average, NA_real_))
pm25_unavailable <- pm25_lines |>
summarise(observed = sum(is.finite(average)), .by = Station) |>
filter(observed == 0L) |>
mutate(date = mean(range(pm25_lines$date)))Monthly source: Live NSO response, 2021-01 to 2026-10. Of 560 station-months, 466 meet the mean/completeness rule. 44 of those retained station-months have no reported exceedance percentage.
pm25_lines |>
ggplot(aes(x = date, y = average)) +
geom_hline(yintercept = 25, linetype = "dashed", color = "darkred") + # 2016 annual reference
geom_hline(yintercept = 5, linetype = "dotted", color = "grey30") + # WHO 2021 annual guideline
geom_line(color = "firebrick", linewidth = 0.6) +
geom_point(color = "firebrick", size = 0.8) +
geom_text(
data = pm25_unavailable, aes(x = date, y = Inf),
label = "No eligible observations", inherit.aes = FALSE, vjust = 2,
size = 3, color = "#536873"
) +
facet_wrap(~Station, ncol = 2) +
scale_x_date(breaks = seq(min(pm25$date), max(pm25$date), by = "year"), date_labels = "%Y") +
scale_y_continuous(limits = c(0, NA)) +
labs(
title = "Monthly Mean PM2.5 at Selected Ulaanbaatar Stations",
subtitle = "Dashed = 2016 annual reference (25 µg/m³); dotted = WHO annual guideline (5 µg/m³)",
x = NULL,
y = "PM2.5 (µg/m³)",
caption = paste(pm25_source$mode, "| Illustrative 75% completeness rule | NSO DT_NSO_2400_015V5")
) +
theme(strip.text = element_text(face = "bold"), panel.grid.minor = element_blank())The lines are annual reference values for scale, not tests of monthly compliance. The 25 micrograms/m3 line is the historical MNS 4585:2016 annual PM2.5 benchmark; WHO’s 2021 annual guideline is 5 micrograms/m3. Mongolia announced a revised MNS 4585 in June 2025. Verify its effective rules and averaging periods before comparing later observations. The meaning of the source’s monthly maximum has not been verified, so it is not analysed here.
PM2.5: Days Above the Standard
The source reports a percentage labelled “Exceeding percent of AQS”. Its threshold version, measurement denominator and averaging convention need confirmation, particularly across the 2025 standard revision. We preserve it as a source-reported indicator rather than reconstructing daily exceedance counts or a city-wide percentage.
pm25_complete |>
ggplot(aes(x = date, y = Station, fill = pct_days_above)) +
geom_tile(color = "white", linewidth = 0.2) +
scale_fill_gradient(
low = "#fbe3e3", high = "#8b1a1a", na.value = "grey90",
limits = c(0, 100), name = "% of days\nabove standard"
) +
guides(fill = guide_colourbar(barwidth = grid::unit(85, "mm"), barheight = grid::unit(3, "mm"))) +
scale_x_date(date_breaks = "1 year", date_labels = "%Y", expand = c(0, 0)) +
labs(
title = "Source-Reported PM2.5 Exceedance Percentages",
subtitle = "Each tile is one station-month; grey = percentage not reported; blank = excluded or absent station-month",
x = NULL, y = NULL,
caption = paste(pm25_source$mode, "| Source threshold version needs confirmation | NSO DT_NSO_2400_015V5")
) +
theme(panel.grid = element_blank())
knitr::kable(pm25_season,
digits = c(0, 0, 0, 1, 1),
col.names = c("Season", "Station-months", "Reported percentages", "Median above standard (%)", "Mean PM2.5 (µg/m³)"),
caption = "Available station-months and reported percentage counts"
)| Season | Station-months | Reported percentages | Median above standard (%) | Mean PM2.5 (µg/m³) |
|---|---|---|---|---|
| Other | 234 | 207 | 3 | 28.2 |
| Jun-Aug | 109 | 92 | 0 | 10.8 |
| Dec-Feb | 123 | 123 | 81 | 89.3 |
knitr::kable(balanced_summary,
digits = c(0, 0, 1, 1),
col.names = c("Season", "Station-months", "Mean PM2.5 (µg/m³)", "Median above standard (%)"),
caption = "Sensitivity panel with all six winter/summer months per station-year"
)| Season | Station-months | Mean PM2.5 (µg/m³) | Median above standard (%) |
|---|---|---|---|
| Dec-Feb | 54 | 106.3 | 85.5 |
| Jun-Aug | 54 | 11.3 | 0.0 |
Descriptive summary: In December-February, the median reported station-month percentage is 81%; in June-August it is 0%. The corresponding unweighted means of available station-month concentrations are 89 and 11 micrograms/m3. The coverage table and balanced-panel sensitivity above show which records contribute. These summaries do not measure personal exposure or the proportion of all city days exceeding a threshold. Missing percentages remain unknown.
Sulphur Dioxide (SO₂)
SO2 is associated with combustion, including heating fuels. The monthly series below uses the historical bundled snapshot. Its measurement-count field sometimes exceeds the number of days in a month, so a day-based completeness rule cannot be applied without a verified definition.
so2 <- air_cached |>
filter(str_detect(Indicator_en, "Sulphur dioxide")) |>
reshape_monthly() |>
complete(Station, date = seq(min(date), max(date), by = "month"))
so2 |>
ggplot(aes(x = date, y = average)) +
geom_hline(yintercept = 20, linetype = "dashed", color = "darkorange3") + # 2016 annual reference
geom_line(color = "darkorange", linewidth = 0.6) +
geom_point(color = "darkorange", size = 0.8) +
facet_wrap(~Station, ncol = 2) +
scale_x_date(breaks = seq(min(so2$date), max(so2$date), by = "year"), date_labels = "%Y") +
scale_y_continuous(limits = c(0, NA)) +
labs(
title = "Monthly Mean SO₂ at Selected Ulaanbaatar Stations",
subtitle = "Bundled snapshot; dashed = 2016 annual reference (20 µg/m³)",
x = NULL,
y = "SO₂ (µg/m³)",
caption = "Source: NSO Mongolia (snapshot of DT_NSO_2400_015V1)"
) +
theme(strip.text = element_text(face = "bold"), panel.grid.minor = element_blank())
knitr::kable(so2_ratio,
digits = c(0, 0, 0, 1, 1, 1),
col.names = c("Station", "Winter months", "Summer months", "Winter SO₂ (µg/m³)", "Summer SO₂ (µg/m³)", "Winter/summer ratio"),
caption = "Observed months and winter/summer sulphur dioxide concentrations"
)| Station | Winter months | Summer months | Winter SO₂ (µg/m³) | Summer SO₂ (µg/m³) | Winter/summer ratio |
|---|---|---|---|---|---|
| 13th micro district | 9 | 9 | 59.6 | 4.6 | 13.1 |
| 1st micro district | 9 | 9 | 206.1 | 11.2 | 18.4 |
| Amgalan | 2 | 2 | 114.0 | 35.5 | Not reported |
| Khailaast | 9 | 9 | 124.2 | 4.2 | 29.4 |
| Nisekh | 2 | 2 | 126.0 | 17.0 | Not reported |
| Tolgoit | 8 | 8 | 223.6 | 10.2 | 21.8 |
| West crossroad | 9 | 9 | 65.8 | 6.1 | 10.8 |
| Zuragt | 2 | 2 | 296.0 | 22.0 | Not reported |
Seasonal pattern: The table reports winter/summer contrasts only when both seasons have at least three observed means and a positive summer mean. Coverage differs across stations, so these are exploratory comparisons. A winter increase is consistent with a heating contribution but does not identify the main source without separate evidence.
Rounded Annual Means and a Historical Reference
The reference factor is the rounded annual mean divided by a historical 2024 benchmark from MNS 4585:2016. It describes the published value relative to a reference; it does not establish legal compliance or adequate annual monitoring coverage.
# Mongolia's annual standards (MNS 4585:2016), ug/m3
annual_standard <- c("PM2.5" = 25, "SO2" = 20, "NO2" = 40)
compliance <- air_annual |>
filter(Station %in% top_stations) |>
mutate(
Pollutant_Type = case_when(
str_detect(Pollutant, "PM2.5") ~ "PM2.5",
str_detect(Pollutant, "Sulphur dioxide") ~ "SO2",
str_detect(Pollutant, "Nitrogen dioxide") ~ "NO2",
.default = NA_character_
)
) |>
filter(!is.na(Pollutant_Type)) |>
mutate(
Standard = annual_standard[Pollutant_Type],
Exceedance_Factor = ug_m3 / Standard,
Status = if_else(Exceedance_Factor > 1, "Reported mean above reference", "Reported mean at/below reference")
)
compliance |>
ggplot(aes(x = Exceedance_Factor, y = reorder(Station, Exceedance_Factor), fill = Status)) +
geom_col() +
geom_vline(xintercept = 1, linetype = "dashed", color = "black") +
geom_text(aes(label = round(Exceedance_Factor, 1)), hjust = -0.15, size = 2.8) +
facet_wrap(~Pollutant_Type, scales = "free_x") +
scale_fill_manual(values = c("Reported mean at/below reference" = "#167D8D", "Reported mean above reference" = "#A94438"), name = NULL) +
guides(fill = guide_legend(nrow = 2, byrow = TRUE)) +
scale_x_continuous(expand = expansion(mult = c(0, 0.2))) +
labs(
title = "Rounded Annual Mean Relative to the 2016 Reference, 2024",
subtitle = "Rounded values relative to the historical benchmark; no compliance determination",
x = "Exceedance factor", y = NULL,
caption = "Annual means are rounded to 10 µg/m³. Source: NSO Mongolia, DT_NSO_2024_135V01"
) +
theme(legend.position = "bottom", panel.grid.major.y = element_blank())Interpretation: The table counts rounded published values above the historical benchmark. Values near a reference cannot resolve the position of the unrounded concentration; for example, a reported NO2 annual mean of 40 micrograms/m3 may lie on either side of a 40 micrograms/m3 reference. Exact compliance also depends on the applicable monitoring protocol. The 2025 revision and WHO health-based guidelines should be described separately.
Water Quality Monitoring
NSO publishes river and lake water quality by station. We look first at electrical conductivity, a measure of dissolved minerals and salts.
water_year <- analysis_latest_common_year("DT_NSO_2300_005V12")
water_raw <- nso_data("DT_NSO_2300_005V12", list(Year = water_year), labels = "en")
water_status <- nso_value_status(water_raw)
water <- analysis_one_year(water_raw, water_year) |>
filter(!is.na(value)) |>
mutate(
Station = str_trim(`Station location_en`),
Indicator = str_trim(Indicator_en)
)
analysis_keys(water, c("Station location", "Indicator", "Year_en"))
conductivity <- water |>
filter(str_detect(Indicator, "Electrical conductivity")) |>
slice_max(order_by = value, n = 15, with_ties = FALSE)
conductivity |>
ggplot(aes(x = value, y = reorder(Station, value))) +
geom_col(fill = "#167D8D") +
geom_text(aes(label = scales::label_comma()(value)), hjust = -0.1, size = 3) +
scale_x_continuous(labels = scales::label_comma(), expand = expansion(mult = c(0, 0.15))) +
labs(
title = paste0("Top 15 Water Stations by Electrical Conductivity, ", water_year),
subtitle = "Higher values mean more dissolved minerals and salts",
x = "Conductivity (µS/cm)", y = NULL,
caption = "Source: NSO Mongolia, DT_NSO_2300_005V12"
) +
theme(panel.grid.major.y = element_blank(), panel.grid.minor = element_blank())High conductivity can reflect natural dissolved minerals and salts, including in closed-basin lakes where evaporation concentrates salts. Conductivity alone does not establish pollution or drinking-water safety. Other indicators, such as BOD5 and ammonium nitrogen, provide different information and also require appropriate source definitions.
The Tuul River Through Ulaanbaatar
tuul <- water |>
filter(str_starts(Station, "Tuul")) |>
mutate(Indicator = case_when(
str_detect(Indicator, "BOD5") ~ "BOD5 (mg/L)",
str_detect(Indicator, "NH4-N") ~ "NH4-N (mg/L)",
str_detect(Indicator, "Water quality index") ~ "Water quality index",
.default = NA_character_
)) |>
filter(!is.na(Indicator)) |>
select(Station, Indicator, value) |>
pivot_wider(names_from = Indicator, values_from = value) |>
arrange(`NH4-N (mg/L)`)
knitr::kable(tuul, caption = paste0("Tuul River stations, ", water_year))| Station | BOD5 (mg/L) | NH4-N (mg/L) | Water quality index |
|---|---|---|---|
| Tuul, Uubulan | 2.1 | 0.13 | 0.29 |
| Tuul, Zaisan | 2.1 | 0.14 | 0.29 |
| Tuul, Zaamar | Not reported | 0.34 | 0.59 |
| Tuul, Lun | 5.3 | 0.51 | 1.23 |
| Tuul, Altanbulag | 6.0 | 1.38 | 1.12 |
| Tuul, Songino | 93.5 | 8.20 | 10.29 |
At Zaisan, BOD5 is 2.1 mg/L and ammonium is 0.14 mg/L. The values at Songino are 93.5 and 8.2 mg/L. Differences among sites can have several explanations, including wastewater inputs. These station-year summaries cannot identify a contribution or establish a trend. Verify whether values are annual means, individual samples or another summary before further interpretation.
Dust Days
Dust storms carry particles associated with adverse health effects. This example summarises observed complete station-years only. Blank cells and absent months are unknown unless NSO documents otherwise; they are never automatically counted as no dust days. Rankings depend on the number of usable years at each station and should not be treated as a uniform ten-year climatology.
dust_raw <- nso_data("DT_NSO_2400_028V1", list(), labels = "en")
dust_status <- nso_value_status(dust_raw)
dust <- dust_raw |>
mutate(
Station = str_trim(`Station location_en`),
Region = `Station location`, Region_en = Station
)
available_years <- sort(unique(substr(dust$Month_en, 1, 4)))
# Exclude an ongoing calendar year, but keep a complete latest year if the
# source is lagged. Absent months are filled as unknown by the helper.
available_years <- available_years[as.integer(available_years) < as.integer(format(Sys.Date(), "%Y"))]
dust_years <- tail(available_years, 10L)
stopifnot(length(dust_years) > 0L)
dust_annual <- analysis_annual_counts(dust, unique(dust$Region), dust_years) |>
rename(Station = Region_en, dust_days = count)
dust_coverage <- dust_annual |>
summarise(n_years = n(), n_valid_years = sum(usable), missing_months = sum(n_missing), .by = c(Region, Station))
knitr::kable(dust_coverage,
col.names = c("Station code", "Station", "Years examined", "Usable years", "Missing months"),
caption = "Dust observation coverage; unresolved months remain missing"
)| Station code | Station | Years examined | Usable years | Missing months |
|---|---|---|---|---|
| 0 | Ulgii | 10 | 0 | 46 |
| 1 | Altai | 10 | 0 | 47 |
| 2 | Uliastai | 10 | 0 | 63 |
| 3 | Tosontsengel | 10 | 0 | 73 |
| 4 | Ulaangom | 10 | 0 | 84 |
| 5 | Khovd | 10 | 0 | 62 |
| 6 | Tsetserleg | 10 | 0 | 66 |
| 7 | Bayankhongor | 10 | 0 | 61 |
| 8 | Bulgan | 10 | 0 | 91 |
| 9 | Erdenet | 10 | 0 | 90 |
| 10 | Arvaikheer | 10 | 0 | 62 |
| 11 | Kharkhorin | 10 | 0 | 70 |
| 12 | Murun | 10 | 0 | 76 |
| 13 | Khatgal | 10 | 0 | 85 |
| 14 | Choir | 10 | 0 | 64 |
| 15 | Darkhan | 10 | 0 | 63 |
| 16 | Sainshand | 10 | 0 | 49 |
| 17 | Zamiin-Uud | 10 | 0 | 56 |
| 18 | Mandalgovi | 10 | 0 | 50 |
| 19 | Dalanzadgad | 10 | 1 | 32 |
| 20 | Khanbogd | 10 | 0 | 38 |
| 21 | Sukhbaatar | 10 | 0 | 72 |
| 22 | Baruunkharaa | 10 | 0 | 85 |
| 23 | Zuunkharaa | 10 | 0 | 89 |
| 24 | Zuunmod | 10 | 0 | 66 |
| 25 | Choibalsan | 10 | 0 | 67 |
| 26 | Baruun-Urt | 10 | 0 | 64 |
| 27 | Undurkhaan | 10 | 0 | 69 |
| 28 | Ulaanbaatar | 10 | 0 | 120 |
| 29 | Ulaanbaatar | 10 | 0 | 76 |
dust_summary <- dust_annual |>
filter(usable) |>
summarise(
mean_days = mean(dust_days), min_days = if (n()) min(dust_days) else NA_real_,
max_days = if (n()) max(dust_days) else NA_real_, n_valid_years = n(), .by = c(Region, Station)
) |>
arrange(desc(mean_days))
if (!nrow(dust_summary)) {
ggplot() +
annotate("text", x = 0, y = 0, label = "No complete observed station-years", size = 5, color = "#536873") +
labs(
title = "Dust-Day Comparison Is Not Available",
subtitle = "Unreported months remain unknown; a complete-year ranking cannot be calculated",
caption = "Source: NSO Mongolia, DT_NSO_2400_028V1"
) +
theme_void() +
theme(plot.title = element_text(face = "bold", color = "#183442"))
} else {
dust_summary |>
slice_max(mean_days, n = 10, with_ties = FALSE) |>
ggplot(aes(x = mean_days, y = reorder(Station, mean_days))) +
geom_errorbar(aes(xmin = min_days, xmax = max_days), width = 0.3, color = "grey60", orientation = "y") +
geom_point(color = "#b8860b", size = 3) +
labs(
title = paste0("Complete-Year Dust Observations, ", min(dust_years), "–", max(dust_years)),
subtitle = "Usable years differ by station; points = means, lines = min/max",
x = "Dust days per year", y = NULL,
caption = "Source: NSO Mongolia, DT_NSO_2400_028V1"
) +
theme(panel.grid.major.y = element_blank(), panel.grid.minor = element_blank())
}Coverage: 1 of 30 stations have at least one usable year in this window.
Only complete observed station-years contribute to these means and ranges. The coverage table shows how many years are usable at each station; some stations may have none. A ranking based on unequal sets of years is descriptive and may change with the observation window. An empty result means this source cannot support a complete-year comparison under these conservative rules.
Mapping Dust Days
The weather stations are in towns, so mongolmaps’ settlement points can place them on a map. Station names are matched to the capital and aimag centres first, then to soum centres where the name is unique.
settlements <- mn_settlements() |>
mutate(rank = match(type, c("capital", "aimag_centre", "soum_centre")))
# Khentii's aimag centre, Undurkhaan, was renamed Chinggis city in 2013
dust_points <- dust_summary |>
mutate(name = if_else(Station == "Undurkhaan", "Chingis", Station)) |>
add_count(name, name = "station_name_n") |>
filter(station_name_n == 1L) |> # duplicate station names cannot locate a site
inner_join(settlements, by = join_by(name), relationship = "one-to-many") |>
# Keep the highest-ranked match; drop names shared by several soum centres
filter(rank == if (n()) min(rank) else NA_real_, .by = Station) |>
filter(n() == 1, .by = Station) |>
sf::st_as_sf()
unplaced <- dust_summary$Station[!dust_summary$Region %in% dust_points$Region]
if (!nrow(dust_points)) {
ggplot() +
annotate("text", x = 0, y = 0, label = "No stations with complete observed years to map", size = 5, color = "#536873") +
labs(
title = "Dust-Day Map Is Not Available",
subtitle = "Coverage is insufficient for a complete-year comparison",
caption = "Source: NSO Mongolia, DT_NSO_2400_028V1"
) +
theme_void() +
theme(plot.title = element_text(face = "bold", color = "#183442"))
} else {
mn_map(mn_aimags(), title = "Dust Days in Complete Observed Station-Years") +
geom_sf(data = dust_points, aes(size = mean_days, color = mean_days), alpha = 0.85) +
scale_color_gradient(low = "#f3d9a4", high = "#8a5a00", name = "Dust days\nper year") +
guides(color = guide_colourbar(barwidth = grid::unit(85, "mm"), barheight = grid::unit(3, "mm"))) +
scale_size_area(max_size = 8, guide = "none") +
labs(subtitle = paste0(min(dust_years), "–", max(dust_years), ". Data: NSO Mongolia, DT_NSO_2400_028V1")) +
analysis_map_theme()
}1 of 1 stations with usable years were placed. Stations that could not be placed: None. Mapped settlement centres are illustrative positions, not measured station coordinates. Compare the coverage and summaries of placed and omitted stations before generalising. For exposure studies, use the weather stations’ own coordinates from the National Agency for Meteorology and Environmental Monitoring.
Next Steps
- Ulaanbaatar districts: See the UB District Analysis for the monitoring network by district
- Discover More Tables: See the Discovery Guide for search techniques
- Mapping: Learn spatial analysis in the Mapping Guide
- Reference: Browse all functions in the Reference
Key Environmental Tables
| Indicator | Table ID | Geographic level |
|---|---|---|
| Annual mean air pollutant concentrations | DT_NSO_2024_135V01 | Station |
| Monthly NO2 by station | DT_NSO_2400_015V2 | Station |
| Monthly PM2.5 by station | DT_NSO_2400_015V5 | Station |
| Water quality | DT_NSO_2300_005V12 | Station |
| Dust days | DT_NSO_2400_028V1 | Station |
| Forest fires | DT_NSO_2400_005V1 | Aimag |