wpp.explore: Launching WPP Explorer

Description Usage Arguments Details Note Author(s) See Also Examples

View source: R/wpp.R

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

1
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/

Note

If you have any troubles to see the data, please check that the shiny package is working in your environment. In particular, check that examples in http://rstudio.github.com/shiny/tutorial work. On Windows, you might check this: https://groups.google.com/forum/#!topic/shiny-discuss/tqeURyiPmFI

Author(s)

Hana Sevcikova, based on code from a Joe Cheng's shiny example. Used comments from Patrick Gerland.

See Also

wpp2019, wpp.indicator

Examples

1
2
3
## Not run: 
wpp.explore()
## End(Not run)

wppExplorer documentation built on April 14, 2020, 6:58 p.m.