Skip to contents

Why jpmap

Package positioning, data policy, and how jpmap differs from related tools.

Related Packages

How jpmap differs from other R packages and scripts for Japan maps.

Boundary Data Policy

Where jpmap boundary data comes from and how disputed-territory shapes are handled.

Getting Started

Install jpmap, get boundary data, import maps, and transform coordinates.

Introduction

Install jpmap and learn the three basic functions: plot a map, load map data, and transform coordinates.

Download Boundary Data

Install companion boundary data or build MLIT N03 GeoPackage files locally.

Import Boundary Data

Load companion or locally built boundary GeoPackages with jp_map(), plot_jpmap(), and sf.

Transform Data

Move longitude/latitude data into the same projection and inset layout used by jpmap maps.

Tutorials

Simple plotting workflows using the bundled GDP and U.S. base datasets.

Plot Prefectural Choropleth Maps

Join prefecture-level GDP data to a Japan map and map one fill variable.

Plot Prefectural Point Maps

Transform U.S. base coordinates and add a single point variable to a prefecture map.

Plot Municipal Choropleth Maps

Use Okinawa municipal boundaries and map municipality population.

Plot Municipal Point Maps

Plot selected U.S. base points on an Okinawa municipal map using one point variable.

Interactive Web Maps with leaflet

Use jpmap boundary data in Leaflet, Quarto, pkgdown, and Shiny-style web maps.

Map Options

Control island insets and answer common map questions.

Okinawa and Ogasawara Insets

Include, exclude, or show Okinawa and Ogasawara as transported insets.

FAQ

Short answers about boundary data, inset behavior, and adding your own data.