[This article was first published on - R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Update: Apparently this post needs a disclaimer.
- The probabilities are based on odds published by an online bookmaker. In no way, shape, or form is this an attestation nor algorithmic prediction of who the next Pope will be.
- The house ALWAYS wins.
- The odds are developed by the bookmaker as they see fit, this information is not released to the general public (you and I).
- I do not claim to have any domain specific knowledge related to the Catholic Church.
- Be skeptical of any use other than monitoring the changes in the odds over time.
After getting frustrated with having to run python over and over again (see previous post) to see the trends in the Papal odds, I’ve put together a basic shiny app that allows for real time updates and interactivity.
A live demo version is available at http://glimmer.rstudio.com/dataparadigm/pope/.
Screenshot:
To run it locally using R choose one of the following.
library(shiny) runGitHub("popeShiny", "dataparadigms")
or
library(shiny) runUrl('https://github.com/dataparadigms/popeShiny/archive/master.tar.gz')
Note: Install ggplot2, lubridate, and shiny before running in R.
Kudos to the folks behind RStudio for developing the Shiny package as well as kindly offering up beta testing for Shiny Server.
Full code with comments is available on github.
Updated March 5, 2013 : Added disclaimer and reference to additional R packages.
To leave a comment for the author, please follow the link and comment on their blog: - R.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.