As in golemworldbank, a bubble per country, as large as its population, colored by its group (EU, EFTA, candidate), on axes that stay the same for all the years; here with the code of the country over its bubble, and the correlation of the two indicators across the countries of each year.
Arguments
- x_data, y_data
Data frames from
get_indicator().- x_indicator, y_indicator
The
ids of the two indicators inindicators().- population
Data frame of the population of the countries, from
get_indicator("population"), for the size of the bubbles;NULL, or a country without it, for bubbles of the smallest size.
Examples
plot_scatter(
saved_indicator("gdp_pps"), saved_indicator("life_expectancy"), "gdp_pps", "life_expectancy",
population = saved_indicator("population")
)