Skip to contents

Crude birth and death rates of a country of the Human Mortality Database (geodata::gdt_hmd_demography), the natural increase shaded between them.

Usage

df_demography_hc_transition(code, events = NULL)

Arguments

code

The HMD country code, e.g. "SWE" or "CHE"

events

A named numeric vector of years to mark with a dashed line, e.g. c("Spanish flu" = 1918)

Value

A highcharter graph

Examples

df_demography_hc_transition("SWE", c(famine = 1773, "Spanish flu" = 1918))