Description Usage Arguments Details Note Author(s) See Also Examples
Main function of the package. It opens an interactive (shiny) interface in a browser. To exit the browser view, hit the Escape key.
1 | wpp.explore(wpp.year = NULL, host = NULL, ...)
|
wpp.year |
Determines which wpp package is to be explored. Currently available are 2019 (default), 2017, 2015, 2012, and 2010. |
host |
Argument passed to |
... |
Additional arguments passed to |
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/
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
Hana Sevcikova, based on code from a Joe Cheng's shiny example. Used comments from Patrick Gerland.
1 2 3 | ## Not run:
wpp.explore()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.