mwmap

mwmap makes polished Malawi maps from ordinary R data frames.

It uses the companion mwmapdata package for official Malawi administrative boundaries and gives you a tidy interface for country, region, district, and Traditional Authority maps.

Installation

install.packages("mwmap")

Quick Start

library(mwmap)

district_data <- data.frame(
  district = c("Lilongwe", "Blantyre", "Mzuzu"),
  cases = c(120, 80, 35)
)

mw_map(district_data, fill = cases)

Traditional Authority Maps

ta_data <- data.frame(
  ta = c("Mabuka", "Mwaulambia"),
  coverage = c(72, 64),
  status = c("On track", "Needs support")
)

mw_ta_map(ta_data, fill = coverage, districts = "Mulanje")
mw_ta_map(ta_data, fill = status)

Useful Helpers

mw_districts()
mw_tas(districts = "Lilongwe")
mw_get_map("ta", districts = "Mulanje")
mw_join(ta_data, level = "ta")

Design Goals