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, and the party flags of the Communist Party of China and the
Kuomintang, in both Chinese and English.
FlagStorage(lang = c("Chinese", "English"))
lang |
Character string giving the language of the returned names.
Either |
A list of two named character vectors. With
lang = "Chinese" the elements hold the Chinese national-flag and
political-party names; with lang = "English" they are named
National Flags and Political Parties. 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.