wpp.indicator | R Documentation |
An interface for accessing a WPP indicator, where datasets with observed and predicted data are merged. The resulting data frame is in a "melted" format.
wpp.indicator(what, ...)
what |
Name of indicator. Possible values are:
|
... |
Arguments passed to the underlying functions as described above. |
Data frame with columns charcode
(alpha-2 ISO 3166 country code), Year
, and value
.
Hana Sevcikova
wpp.by.country
, wpp.by.year
tfr <- wpp.indicator("fert")
## Not run:
# Histogram of TFR
print(qplot(value, data=tfr) + facet_wrap(~ Year))
## End(Not run)
## Not run:
mxM01 <- wpp.indicator("mortagesex", sex="M", age="0")
# Plot map
plot(gvisGeoMap(tfr, locationvar='charcode', numvar='value'))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.