if (FALSE) {
# Example data for Indonesia, 2020
data_idn <- pop_data_by_year(load_pop_data(), 2020) |>
pop_data_by_reg(0) #Indonesia
# Absolute count pyramid
pyr_single(data_idn)
# Proportional pyramid with different palette
pyr_single(data_idn, use_prop = TRUE, color = "Professional and modern")
}
Run the code above in your browser using DataLab