View source: R/plot_party_flag.R
| plot_CCP | R Documentation |
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.
plot_CCP(plot_type = "flag", label = FALSE)
plot_type |
Character string specifying the rendering mode.
Either |
label |
Logical value indicating whether to display textual annotations
(title and axis labels). Default is |
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.
A ggplot object representing the CCP emblem or flag.
Per the regulations on the emblem and flag of the Communist Party of China.
plotCNFlag for the unified flag plotting interface.
plot_CCP(plot_type = "flag")
plot_CCP(plot_type = "logo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.