The total fertility rate (children per woman) of one or more countries since 1960, with the replacement level (2.1). One country is drawn as an area, several as lines.
Usage
gph_hc_tfr(
countries,
events = NULL,
periods = NULL,
highlight = NULL,
colors = c("#c03728", "#8a93a3", "#d9a441", "#919c4c", "#5b7fa6", "#6b452b", "#2b323f")
)Arguments
- countries
A character vector of country names or iso codes
- events
A named numeric vector of years to mark with a dashed line, e.g.
c("one child" = 1980)- periods
A named list of year ranges to shade, e.g.
list(famine = c(1959, 1961))- highlight
Countries (as in
countries) drawn with a thicker line- colors
Colours of the countries, in the order of
countries
