Skip to content

ggChinaFlag

1.0.0Package record

Drawing Chinese National and Historical Flags with 'ggplot2'

0packages depend
1.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Provides programmatic implementations for drawing Chinese national and historical flags using analytic geometry and 'ggplot2'-based vector graphics. Flag designs are constructed entirely from geometric primitives such as polygons and rectangles, without relying on external image files. The package is intended for educational demonstration, reproducible visualization, and procedural graphics in R.

Changes in 1.0.0
  • First stable release.
  • plot_PLA() gains a new subtype, the flag of the China Armed Police Force (CAPF, 2018-), accessible via subtype = "武警", "CAPF", or "People's Armed Police Force". The lower 3/8 of the flag carries three dark olive-green stripes (each H/12 high with H/24 red gaps), constructed per the official flag image released by the Ministry of National Defense.
  • FlagStorage() and plotCNFlag() now recognise the CAPF flag in both Chinese ("中国人民武装警察部队旗") and English.
  • Added the package logo (hex sticker) in man/figures/logo.png, shown in the README and the pkgdown site.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK1 OK2026-07-04
Advisories

none known

Documentation

In release 1.0.0
READMENoVignettesNoNEWSYes · 100% structured · mentions 1.0.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
13
Examples that run
15%2 run in a plain check · 11 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
38%

Downloads

1.1K
CRAN downloads in the past year
Rank #13,755 · ~3/day · ~91/mo
Daily download trend is not available in this view yet.
39430 days
86090 days
1.1K1 year
Compare downloads with other packages →
Also on30 r2u

Repository

0Stars
0Forks
0Open issues
0Open PRs
5Releases
22Commits
1Commit identities
22 commits · Last activity 2026-10-01
Responsiveness
not measured

Releases over time

2025-12-30 · 32026-09-13 · 5
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/xlions/ggchinaflag on 2026-10-25.

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing ggChinaFlag adds 34 packages (20 with compiled code, 23 MB of source tarballs). Heaviest: ggplot2 6.0 MB, showtextdb 1.9 MB, isoband 1.5 MB.

Depends (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.2.0 (2026)
Releases (4)

Pick two releases to compare their code metrics.

  • 1.0.0Latest
    record
    2026-10-01 · current release · diff ↗ ·
    added 1 export
    plot_ggChinaFlag_logo
  • 0.4.0
    record
    2026-07-14 · diff ↗ ·
    added 2 exports
    plot_CYLC, plot_PLA
  • 0.3.0
    record
    2026-07-14 · diff ↗ ·
    added 2 exports
    plot_HK_SAR_flag, plot_Macao_SAR_flag
  • 0.2.0
    record
    2026-07-04
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-07-04
Total releases
4 / 1 yrs
License
GPL-3 OSI
Download size
84 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ggChinaFlag")
Liu, Z. (2026). ggChinaFlag: Drawing Chinese National and Historical Flags with 'ggplot2' (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.ggChinaFlag

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggChinaFlag version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy