flag_fillr_states: Use flags as a fill to plot a ggplot2 map

Description Usage Arguments Note Examples

Description

flag_fillr_states uses state-level flags as a fill for a particular country.

Usage

1
flag_fillr_states(country = NULL, mainland_only = TRUE)

Arguments

country

character. For a list of countries, run country_list_states() in the R console. (This extra function is needed due to inconsistencies in the country names across rnaturalearth.) For the USA, you can use the full name or 'us'/'usa'. See notes.

mainland_only

filter out far-flung territories from the data?

Note

Not all countries currently have flags available in the package, or will ever have, since many don't have lower-administrative-level flags. Check the 'state-flags' folder on the github repo for this project (https://github.com/RobertMyles/flagfillr) to see what's currently available.

Examples

1
2
3
4
## Not run: 
flag_fillr_states(country = "Brazil")

## End(Not run)

RobertMyles/flagfillr documentation built on May 27, 2019, 1:08 a.m.