Generate a waffle plot made of country flags
Usage
waffle_country(
data,
citation = NULL,
citation_size = NULL,
data_formatted = NULL,
flag_size = 8.5
)
Arguments
- data
The processed dataframe of data
- citation
Optionally, a citation to add as a footer.
- citation_size
Font size of the citation.
- data_formatted
To save time, it is possible to reuse the dataframe used for this function that is generated by
table_country()
.- flag_size
Size of flags.
Examples
if (FALSE) { # \dontrun{
data <- fetch_openalex_pubs(journal_name = "Collabra", pages = 1)
data <- clean_journals_continents(data)
waffle_country(data)
} # }