Election

Quick Post About Getting and Plotting Polls in R

With the election nearly upon us, I wanted to share an easy way I just found to download polling data and graph a few with ggplot2. dlinzer at github created a function to download poll data from the Huffington Post's Pollster API. The default is to download national tracking polls from the presidential election. After sourcing the function, I load the required packages, download the data, and make the plot.