R/quickplots.R
plot_dist_wdi.Rd
Plot the distribution (density) of a single indicator using WDI data, downloading the data as necessary for the period indicated by start and end, and keeping only the latest data point available for each country
character of length 1 with the indicator code
character vector with country names to highlight
whether to show facets per region or income
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
Transformation exponent, <U+03BB>, as in scales::modulus_trans
a ggplot2 object
if (FALSE) {
plot_dist_wdi()
}