Learn R Programming

wppExplorer (version 1.0-3)

wpp.indicator: Accessing a WPP Indicator

Description

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.

Usage

wpp.indicator(what, ...)

Arguments

what
Name of indicator. Possible values are: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[obj
...
Arguments passed to the underlying functions as described above.

Value

  • Data frame with columns charcode (alpha-2 ISO 3166 country code), Year, and value.

See Also

wpp.by.country, wpp.by.year

Examples

Run this code
tfr <- wpp.indicator("fert")
	# Histogram of TFR 
	print(qplot(value, data=tfr) + facet_wrap(~ Year))
	mxM01 <- wpp.indicator("mortagesex", sex="M", age="0")
	# Plot map
	plot(gvisGeoMap(tfr, locationvar='charcode', numvar='value'))

Run the code above in your browser using DataLab