View source: R/flag_interface.R
| FlagStorage | R Documentation |
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.
FlagStorage(lang = c("Chinese", "English"))
lang |
Character string giving the language of the returned names.
Either |
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.
plotCNFlag, which matches against these names.
# Chinese names
FlagStorage()
# English names
FlagStorage(lang = "English")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.