R/quickplots.R
plot_bubble_anime_ly_wdi.Rd
Scatter plot that let's you map the size of the markers to an indicator
plot_bubble_anime_ly_wdi(
x_indicator = "SH.XPD.GHED.GD.ZS",
y_indicator = "SH.SGR.CRSK.ZS",
size_indicator = "SP.POP.TOTL",
highlight_countries = c("China", "Chile"),
start = lubridate::year(Sys.Date()) - 20,
end = lubridate::year(Sys.Date() - months(18)),
country = "all",
regions = default_regions(),
income_groups = default_income_groups()
)
code of indicator for the x axis
code of indicator for the y axis
code of indicator for the size of the markers
character vector with country names to highlight
first year to download data
last year to download data
subset of countries to download data from. Default to "all". This argument is passed as is to WDI::WDI and hence, requires 'ISO-2 character codes, e.g. "BR", "US", "CA"'.
character vector to filter the data only to specific regions
character vector to filter the data only to specific income groups
a plotly object
if (FALSE) {
plot_bubble_anime_ly_wdi()
}