Learn R Programming

wppExplorer (version 2.3-4)

wpp.explore: Launching WPP Explorer

Description

Main function of the package. It opens an interactive (shiny) interface in a browser. To exit the browser view, hit the Escape key.

Usage

wpp.explore(wpp.year = NULL, host = NULL, ...)

Arguments

wpp.year

Determines which wpp package is to be explored. Currently available are 2019 (default), 2017, 2015, 2012, and 2010.

host

Argument passed to runApp. Defaults to the shiny.host option, or "0.0.0.0" if not set.

Additional arguments passed to runApp.

Details

The time slider in the left pane defines the year or time period for which data are shown. Note that for vital rates indicators, such as fertility, mortality, migration and sex ratio at birth, the time shown on the slider is the end year of the time period of the data shown in the right pane.

The uncertainty selection is only used for indicators and years for which the corresponding lower and upper bounds are available, and for the appropriate visualization types. These are country plots that appear after clicking on the map, table in the “Sortable Data” tab, and “Trends” and “Pyramids”. The 80 and 95% intervals are available for the fertility, life expectancy and total population indicators; The +-1/2child intervals are available for the fertility and population indicators.

The ggplot-based graphs in the Trends and Pyramids tabs are interactive. One can see the data values by mouse hovering or single clicks. One can zoom in by selecting a region. Zooming out is done by a double click.

The interface can be accessed online: https://bayespop.shinyapps.io/wpp2019explorer/

See Also

wpp2019, wpp.indicator

Examples

Run this code
# NOT RUN {
wpp.explore()
# }

Run the code above in your browser using DataLab