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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ggChinaFlag")

1.0.0 by Zhaoshuo Liu, 3 days ago


https://github.com/XLions/ggChinaFlag


Report a bug at https://github.com/XLions/ggChinaFlag/issues


Browse source code at https://github.com/cran/ggChinaFlag


Authors: Zhaoshuo Liu [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports ggplot2, dplyr, showtext, ggforce

Suggests sysfonts


See at CRAN