Description Usage Arguments Value Examples
data data and plot for one or more country and a variable from worldbank
1 2 | wd_data_plot(var = "NY.GDP.MKTP.CD", varname = "GDP", country = "CN",
startyear = 1960, endyear = 2014)
|
var: |
variable code you can get it using WDIsearch("var"). The common variables are (1)"SL.UEM.TOTL.ZS"(unemployment rate), (2)"FP.CPI.TOTL.ZG" (inflation rate), (3)"NY.GDP.DEFL.KD.ZG"(Inflation, GDP deflator (annual)" ),(4)"GDPPCKN" –"Real GDP per Capita (real local currency units, various base years)", (5)"NY.GDP.MKTP.CD"- "GDP (current US$)" (6)"NY.GDP.MKTP.CN"- "GDP (current LCU)", (7)"NY.GDP.PCAP.CD" - "GDP per capita (current US$)" <ef><bc><88>8), (9)"NY.GDP.PCAP.KN" - "GDP per capita (constant LCU)", (10)"NYGDPMKTPCN"-"GDP, current LCU, millions" |
varname: |
var name you name it |
country: |
2 iso country code |
startyear: |
start year like 1960 |
endyear: |
end year |
a list: data, p=plot
1 | wd_data_plot("NY.GDP.MKTP.CD","GDP",c("CN","IN","US"),1960,2014)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.