pan_labeller_country: Labeller function for 'ggplot2' 'facet's.

Description Usage Arguments Value Examples

View source: R/pan_labeller_country.R

Description

Takes a character vector of some origin format given in ?countrycode::codelist and returns either a character vector of the format [origin] - [destination], or a character vector of only the destination format.

Usage

1
2
3
4
5
6
pan_labeller_country(
  x,
  origin = "iso3c",
  destination = "country.name",
  both = TRUE
)

Arguments

x

A character vector.

origin

An atomic character, see ?countrycode::codelist.

destination

An atomic character, see ?countrycode::codelist.

both

Boolean, should origin and destination be returned, or only destination?

Value

A character vector.

Examples

1
pan_labeller_country(c("AUS", "TWN"))

thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.