Publications by aschinchon

The Moon And The Sun

08.07.2015

Do not swear by the moon, for she changes constantly. Then your love would also change (William Shakespeare, Romeo and Juliet) The sun is a big point ant the moon is a cardioid: Here you have the code. It is a simple example of how to use ggplot: library(ggplot2) n=160 t1=1:n t0=seq(from=3, to=2*n+1, by=2) %% n t2=t0+(t0==0)*n df=data.frame(x1=c...

640 sym R (527 sym/1 pcs) 6 img

Going Bananas #2: A Needle In A Haystack

03.08.2015

Now I’m gonna tell my momma that I’m a traveller, I’m gonna follow the sun (The Sun, Parov Stelar) Inspired by this book I read recently, I decided to do this experiment. The idea is comparing how easy is to find sequences of numbers inside Pi, e, Golden Ratio (Phi) and a randomly generated number. For example, since Pi is 3.141592653589793...

2359 sym R (2802 sym/1 pcs) 10 img

The World We Live In #5: Calories And Kilograms

19.08.2015

I enjoy doing new tunes; it gives me a little bit to perk up, to pay a little bit more attention (Earl Scruggs, American musician) I recently finished reading The Signal and the Noise, a book by Nate Silver, creator of the also famous FiveThirtyEight blog. The book is a very good reading for all data science professionals, and is a must in partic...

2305 sym R (3208 sym/1 pcs) 6 img

A Simple Interactive Map Of US Prisons With Leaflet

08.09.2015

The love of one’s country is a splendid thing. But why should love stop at the border? (Pablo Casals, Spanish cellist) Some time ago, I discovered Enigma, an amazing open platform that unifies billions of records from thousands of government sources to make the world of public data universally accessible and useful. This is the first experiment...

2118 sym R (1071 sym/1 pcs) 6 img

A Segmentation Of The World According To Migration Flows ft. Leaflet

29.09.2015

Up in the sky you just feel fine, there is no running out of time and you never cross a line (Up In The Sky, 77 Bombay Street) In this post I analyze two datasets from Enigma: Migration flows: Every 10 years, since 1960, the World Bank estimates migrations worldwide (267.960 rows) World population: Values and percentages of populations for ea...

2927 sym R (3181 sym/1 pcs) 6 img

A Visualization Of The 100 Greatest Love Songs ft. D3.js

12.10.2015

What would you do? If my heart was torn in two (More Than Words, Extreme) Playing with rCharts package I had the idea of representing the list of 100 best love songs as a connected set of points which forms a heart. Songs can be seen putting mouse cursor over each dot. This is an screenshot of the graph: If you want to play with the visualization...

833 sym R (938 sym/1 pcs) 6 img

Visualising The Evolution Of Migration Flows With rCharts

19.10.2015

Heaven we hope is just up the road (Atlas, Coldplay) Following with the analysis of migration flows, I have done next two visualizations. These charts are called bump charts and are very suitable to represent rankings. This is what I have done: Obtaining top 20 countries of the world according to % of migrants respect its population To do this, ...

2480 sym R (3060 sym/1 pcs) 8 img

The Batman’s Ecosystem

03.11.2015

If I weren’t crazy, I’d be insane! (Joker) I present today a dynamical D3.js plot where I combine three things: The Batman curve A text mining analysis to obtain most common words from the Batman’s page at Wikipedia A line plot using morris.js library of rCharts package where point labels are the words obtained in the previous step This i...

1129 sym R (1883 sym/1 pcs) 6 img

Polar Circles

16.11.2015

You cannot find peace by avoiding life (Virginia Woolf) Combining polar coordinates, RColorBrewer palettes, ggplot2 and a simple trigonometric function to define the width of the tiles is easy to produce nice circular plots like these: Do you want to try? Here you have the code: library(ggplot2) library(dplyr) library(RColorBrewer) n=500 m=50 w=...

673 sym R (1313 sym/1 pcs) 12 img

Hypnotical Fermat

01.12.2015

Se le nota en la voz, por dentro es de colores (Si te vas, Extremoduro) This is a gif generated with 25 plots of the Fermat’s spiral, a parabolic curve generated through the next expression: where is the radius, is the polar angle and is simply a compress constant. Fermat showed this nice spiral in 1636 in a manuscript called Ad locos plano...

1025 sym R (626 sym/1 pcs) 16 img