wpp.explore: Launching Explorer

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

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 = 2015, host = NULL, sim.dir = NULL, ...)

Arguments

wpp.year

Determines which wpp package is to be explored. Currently only 2015 available. Data on migration and population is loaded from the wpp2015BayesMig package, remaining datasets are loaded from the wpp2015 package.

host

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

sim.dir

Simulation directory used for probability calculations. It should be a directory created by the pop.predict function of the bayesPop package.

...

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 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.

For more information see the Help tab of the explorer.

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

wpp2015BayesMig, wpp.indicator

Examples

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

PPgp/wppExplorerBayesMig documentation built on May 7, 2019, 11:52 p.m.