View source: R/plot_national_flag.R
| plot_ROC_KMT_flag | R Documentation |
Programmatically draws the Blue Sky, White Sun, and a Wholly Red Earth flag
used during the Nationalist Government period (1928-1949) of the Republic of
China, using analytic geometry with ggplot2 and ggforce. The
flag has a red field, a blue canton in the upper-left, and a twelve-rayed
white sun within the canton, all generated from vector geometry without
external image files.
plot_ROC_KMT_flag(label = TRUE)
label |
Logical; whether to display the title and explanatory text.
|
The red field and blue canton are built from rectangles.
The twelve-rayed sun is a closed polygon of 24 vertices.
Two concentric circles form the core of the white sun.
ggplot2::coord_quickmap() keeps the proportions undistorted.
Axes, grid and legend are hidden by default.
A ggplot object, which can be printed or saved with
ggsave().
Design: Sun Yat-sen (proposal) and Lu Haodong (Blue Sky, White Sun).
geom_polygon,
geom_rect,
geom_circle
plot_ROC_KMT_flag()
plot_ROC_KMT_flag(label = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.