plot_CCP: Plot the emblem or flag of the Communist Party of China (CCP)

View source: R/plot_party_flag.R

plot_CCPR Documentation

Plot the emblem or flag of the Communist Party of China (CCP)

Description

This function programmatically renders the emblem of the Communist Party of China using analytic geometry and ggplot2-based vector graphics. The symbol is constructed entirely from geometric primitives (arcs, polygons, and rectangles), without relying on any external image files.

Usage

plot_CCP(plot_type = "flag", label = FALSE)

Arguments

plot_type

Character string specifying the rendering mode. Either "flag" (default) or "logo".

label

Logical value indicating whether to display textual annotations (title and axis labels). Default is FALSE.

Details

Two rendering modes are supported:

  • "flag": A rectangular background with a 3:2 aspect ratio, suitable for flag-style visualization.

  • "logo": A square (1:1) background, suitable for emblem or logo-style visualization.

The geometric construction follows a stepwise layering strategy, including the outer and inner arcs of the sickle, the handle, and the hammer body. All coordinates are transformed into a unified plotting coordinate system.

Value

A ggplot object representing the CCP emblem or flag.

Author(s)

Per the regulations on the emblem and flag of the Communist Party of China.

See Also

plotCNFlag for the unified flag plotting interface.

Examples


plot_CCP(plot_type = "flag")
plot_CCP(plot_type = "logo")



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