Venezuela’s 2015 Parliamentary Elections
[This article was first published on Daniel, 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.
Next Sunday Venezuelans are heading to the polls once again with international concerns about the clearness of the balloting. To get an idea about the political climate over there, I've collected some polls available on the internet. The surprising thing from those surveys is a tremendous variability from pollster to pollster about the single topic of voting intention. You may find national polls fielded in the same period with estimates varying as much as 20%, isn't it dramatic? If you always wanted to see house bias operating in practice, the Venezuelan elections may provide you a good case then.
### The data library(ggplot2) library(dplyr) library(SciencesPo) source = "https://github.com/danielmarcelino/Polling/raw/master/Venezuela/data/polls.txt" data <- getdata(source) data$begin <- as.Date(data$begin, format = "%d-%m-%Y") # just interested in some period data <- data %>% filter(begin>as.Date("01-07-2014", format = "%d-%m-%Y")) ### The plot ggplot(data) + geom_point(aes(x = begin, y = MUD,size=3),color="gray25") + geom_point(aes(x = begin, y = PSUV,size=3), color="tomato") + geom_hline(yintercept=0,size=1.2,colour="#535353") + plotTitleSubtitle(title="Vote Intentions for the Gop (MUD) and Gov't (PSUV)", subtitle="Black = MUD, Red = PSUV") + theme_538() # credits plotFootnote("danielmarcelino.github.io")
To leave a comment for the author, please follow the link and comment on their blog: Daniel.
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.