Skip to contents

Create relative population pyramid (5 year cohorts)

Usage

gph_pyramid_relative(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_relative("Switzerland", 2020)
}