FlagStorage: Built-in Chinese and English names of the flags

View source: R/flag_interface.R

FlagStorageR Documentation

Built-in Chinese and English names of the flags

Description

Provides a standardised list of flag names used by plotCNFlag and related functions. It contains the names of the national flag of the People's Republic of China, several historical flags of the Republic of China, the party flags of the Communist Party of China and the Kuomintang, the regional flags of the Hong Kong and Macao Special Administrative Regions, the flag of the Communist Youth League of China, and the flag of the People's Liberation Army and its service branches, in both Chinese and English.

Usage

FlagStorage(lang = c("Chinese", "English"))

Arguments

lang

Character string giving the language of the returned names. Either "Chinese" (default) or "English".

Value

A list of named character vectors. With lang = "Chinese" the elements hold the Chinese national-flag, political-party, regional-flag, organisation, and military flag names; with lang = "English" they are named National Flags, Political Parties, Regional Flags, Organizations, and Military. The strings in each vector correspond one-to-one to the underlying plotting functions.

See Also

plotCNFlag, which matches against these names.

Examples

# Chinese names
FlagStorage()

# English names
FlagStorage(lang = "English")


ggChinaFlag documentation built on Oct. 1, 2026, 5:11 p.m.