rstats shiny app for tracking the next pope

March 2, 2013

(This article was first published on - R, and kindly contributed to R-bloggers)

Update: Apparently this post needs a disclaimer.

  1. 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.
  2. The house ALWAYS wins.
  3. The odds are developed by the bookmaker as they see fit, this information is not released to the general public (you and I).
  4. I do not claim to have any domain specific knowledge related to the Catholic Church.
  5. 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


Screenshot of the App

To run it locally using R choose one of the following.

  runGitHub("popeShiny", "dataparadigms")



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 his blog: - R. offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.