Provides basic ggplot2 graph with the following data on it :
- population
the population curve (blue)
- birth_rate
the birth rate curve (grey)
- death_rate
the death_rate curve (black)
Usage
gph_hc_demogram(
country,
population_color = "blue",
birth_color = "grey",
death_color = "black"
)
Arguments
- country
A string with the country name
- population_color
Color of the population curve
- birth_color
Color of the birth rate curve
- death_color
Color of the death rate curve
Value
A highcharter graph
Examples
gph_hc_demogram("Switzerland")
# for a dark background
gph_hc_demogram("Switzerland", "#6ea8fe", "#8f99a8", "#dee2e6")