jpmapdata

jpmapdata contains boundary GeoPackage files used by jpmap.

The package is intentionally separate from jpmap so updates to map-drawing functionality do not require CRAN mirrors to store the same boundary data again.

install.packages("jpmapdata")
install.packages("jpmap")

library(jpmap)
plot_jpmap("prefecture")
plot_jpmap("municipality", include = "Okinawa")

The package currently includes:

For all-prefecture municipal boundaries, use jpmap::jpmap_build_data() to build the national MLIT N03 file locally:

jpmap_build_data(year = 2024)

The national 2024 GeoPackage is very large, so it is not bundled in the first CRAN-facing jpmapdata package.