›› 2026, Vol. 50 ›› Issue (生态统计方法专题): 0-.DOI: 10.17521/cjpe.2025.0318

   

Application of the R package “ggmapcn” in the production of compliant thematic maps

REN Liang, HUANG Yong-mei, DI Yan-feng, DENG Guo-chen, DUAN Lei   

  1. School of Environment, Tsinghua University 100084, China
    Beijing Key Laboratory of Traditional Chinese Medicine Protection and Utilization, Faculty of Geographical Science, Beijing Normal University 100875, China
    Key Laboratory of Ecological Safety and Sustainable Development in Arid Lands, Xinjiang Institute of Ecology and Geography, Chinese Academy of Sciences 830011, China
    , Chinese Academy of Surveying and Mapping 100830, China
    , State Key Laboratory of Regional Environment and Sustainability 100084, China
  • Received:2025-08-28 Revised:2025-11-26 Online:2026-08-30
  • Contact: HUANG, Yong-mei
  • Supported by:
    National Key Research and Development Project(2023YFF1305304)

Abstract: Maps serve as the primary representation of national territory, and their normative expression is closely tied to na-tional sovereignty and territorial integrity. However, most existing R mapping packages rely on international geo-graphic datasets and therefore face limitations in providing a complete and compliant representation of China’s territory, controlling map symbology, and configuring projection parameters, making them insufficient for com-pliance-oriented scientific cartography. To address these challenges, the “ggmapcn” package was developed within the “ggplot2” grammar of graphics framework. It integrates administrative division data from the National Plat-form for Common GeoSpatial Information Services and employs a layered visualization architecture to enable compliant mapping of both China and the world, while supporting flexible projection transformations and inte-grated visualization of vector and raster data. This paper systematically introduces the functional architecture and usage of “ggmapcn” and illustrates its application in producing thematic maps that comply with national standards through representative examples. The results demonstrate that “ggmapcn” can generate map outputs in R that con-form to official national boundary standards for China and other countries, thereby enriching the R ecosystem for spatial cartography. Finally, the paper outlines future directions for functional improvement and broader applica-tion of the package.

Key words: “ggmapcn” package, thematic mapping, standard map, China administrative divisions, spatial visualization