Description Usage Arguments Value Examples
Scatter plot that let's you map the size of the markers to an indicator
1 2 3 4 5 6 7 8 9 10 11 12 13 | plot_bubble_anime_gg_wdi(
x_indicator = "SH.XPD.GHED.GD.ZS",
y_indicator = "SH.SGR.CRSK.ZS",
size_indicator = "SP.POP.TOTL",
highlight_countries = c("Colombia", "Germany"),
start = lubridate::year(Sys.Date()) - 20,
end = lubridate::year(Sys.Date() - months(18)),
country = "all",
regions = default_regions(),
income_groups = default_income_groups(),
p_x = 1,
p_y = 1
)
|
x_indicator |
code of indicator for the x axis |
y_indicator |
code of indicator for the y axis |
size_indicator |
code of indicator for the size of the markers |
highlight_countries |
character vector with country names to highlight |
start |
first year to download data |
end |
last year to download data |
country |
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"'. |
regions |
character vector to filter the data only to specific regions |
income_groups |
character vector to filter the data only to specific income groups |
p_x |
Transformation exponent for x-axis, as in scales::modulus_trans |
p_y |
Transformation exponent for y-axis, as in scales::modulus_trans |
a ggplot2 object
1 2 3 4 | ## Not run:
plot_bubble_anime_gg_wdi()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.