Skip to contents

Create population pyramid

Usage

gph_pyramid(country, year, theme = ggplot2::theme_minimal())

Arguments

country

A string with the country name

year

An integer for the year

theme

A ggplot2 theme

Value

A ggplot graph

Examples

if (FALSE) { # interactive()
# Not run: needs a valid IDB API key
gph_pyramid("Switzerland", 2020)
}