ggChinaFlag: Drawing Chinese National and Historical Flags with 'ggplot2'

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.

Getting started

Package details

AuthorZhaoshuo Liu [aut, cre] (ORCID: <https://orcid.org/0009-0007-3615-5724>)
MaintainerZhaoshuo Liu <liuzhaoshuo1997@outlook.com>
LicenseGPL-3
Version0.2.0
URL https://github.com/XLions/ggChinaFlag
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("ggChinaFlag")

Try the ggChinaFlag package in your browser

Any scripts or data that you put into this service are public.

ggChinaFlag documentation built on July 4, 2026, 9:07 a.m.