Provides 'ggplot2' layers and annotations for thematic mapping of China and the world. Uses administrative division data from the 'Tianditu' geospatial information service and separate layers for land borders, coastlines, and maritime boundaries. Supports province-, city-, and county-level maps, map projections, graticules, scale bars, north arrows, boundary buffers, and elevation and vegetation raster layers. The package provides default map datasets. Larger data files are hosted in a companion repository <https://github.com/Rimagination/ggmapcn-data> and retrieved as needed.
| Version: | 0.3.1 |
| Depends: | R (≥ 4.3.0), ggplot2 (≥ 3.5.0) |
| Imports: | sf (≥ 1.0.0), dplyr (≥ 1.1.0), terra (≥ 1.7), tidyterra (≥ 0.6.0), curl (≥ 5.0.0), rlang, digest, grid |
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2026-11-02 |
| DOI: | 10.32614/CRAN.package.ggmapcn |
| Author: | Liang Ren |
| Maintainer: | Liang Ren <rl23 at mails.tsinghua.edu.cn> |
| BugReports: | https://github.com/Rimagination/ggmapcn/issues |
| License: | GPL-3 |
| URL: | https://rimagination.github.io/ggmapcn/ |
| NeedsCompilation: | no |
| Materials: | README, NEWS |
| CRAN checks: | ggmapcn results |
| Reference manual: | ggmapcn.html , ggmapcn.pdf |
| Vignettes: |
Adding_Basic_Map (source, R code) Advanced scale bar and compass annotations (source, R code) World map overview with geom_world() (source, R code) |
| Package source: | ggmapcn_0.3.1.tar.gz |
| Windows binaries: | r-devel: ggmapcn_0.3.0.zip, r-release: ggmapcn_0.3.0.zip, r-oldrel: ggmapcn_0.3.0.zip |
| macOS binaries: | r-release (arm64): ggmapcn_0.3.0.tgz, r-oldrel (arm64): ggmapcn_0.3.1.tgz, r-release (x86_64): ggmapcn_0.3.0.tgz, r-oldrel (x86_64): ggmapcn_0.3.1.tgz |
| Old sources: | ggmapcn archive |
Please use the canonical form https://CRAN.R-project.org/package=ggmapcn to link to this page.