I came across the butterfly curve, which was discovered by Temple Fay. The butterfly curve is produced by a parametric equation where: x = sin(t) * (e^cos(t)-2cos(λt)-sin(t/12)^5) and y = cos(t) * (e^cos(t)-2cos(λt)-sin(t/12)^5). Where t stands for time and λ for a user input variable. I used ggplot to create a plot of the butterfly Read More →


I came across this claim in the US press suggesting evidence for a positive relationship between a candidate's height and his vote support. That is, the taller the candidate, the better his/her chances for success in presidential elections. After a little search, I found this Wikipedia entry, and even some academic research on the issue, Read More →


The 2015 Argentine's presidential election to be held next October 25th is approaching and the dispute begun to appear more clearly since the major parties announced their potential candidates last June. This Sunday, the political parties are holding their primaries for the upcoming presidential election. As in US, in Argentine the primaries are important for Read More →


This week, I read a post by Nicholas Hamilton about ternary plots that made me think, how this geometric diagram has many different application in science fields. Couple weeks ago, I was reading a book by Donald Saari, who uses ternary charts massively to project election outcomes in different electoral settings. Perhaps, most common, ternary Read More →

This is a public tank you for @heatherturner's contribution. Now the SciencesPo's crosstable can work in a chain (%>%) fashion; useful for using along with other packages that have integrated the magrittr operator. > candidatos %>% + filter(desc_cargo == 'DEPUTADO ESTADUAL'| desc_cargo =='DEPUTADO DISTRITAL' | desc_cargo =='DEPUTADO FEDERAL' | desc_cargo =='VEREADOR' | desc_cargo =='SENADOR') %>% Read More →