Feed on Posts or Comments

Category Archivevisualisation



general & spanish & visualisation Franchu on 25 Dec 2009

Paro en España

A falta de los datos para el cuatro trimestre de 2009, en las siguientes animaciones podeis ver cómo ha ido evolucionando la tasa de paro en España desde el 2005 hasta ahora. Los efectos de la crisis son claramente visibles a partir de mediados de 2008, y se puede observar cómo el sur está mucho más afectado que el norte.

Los datos utilizados para generar estos gráficos se han obtenido en las páginas del Instituto Nacional de Estadística y del Ministerio de Trabajo e Inmigración – Servicio Público de Empleo Estatal.

La evolución por sectores también es bastante ilustrativa:

Agricultura

Industria

Construcción

Servicios

Sin empleo anterior

english & programming & visualisation Franchu on 15 Dec 2009

United Kingdom’s Met Office dataset preliminary analysis: The Processing script

After posting yesterday the R script that generates the averaged temperatures files, you can find in my GitHub page the Processing script I used to generate the video in the post. Downloading the whole folder should be all you need to be able to reproduce the animation in your computer and with higher quality than what you see online as it got very degraded due to the compression.

I am aware that the code is not very good nor clean, but given that it was my first shoot at doing something with Processing and I was in a trial and error mode I think it is quite normal. I also don’t feel like spending time improving this code as there are other visualisations that I want to work on and where I will have the opportunity of correcting the mistakes I am already aware of.

I just wanted to mention a couple of things:

  • Processing does not support the declaration of enums inside a pde project. If you declare them in an external Java file you can use them in the pde. That is why the code looks weird passing String to define the type of dataset, and having all those cascading if-elseif statements.
  • The code could benefit from a more OO approach and use polymorphism to avoid some repetitions. I promise I will do better next time ;)

As usual, feedback and new ideas are very welcome :)

english & programming & visualisation Franchu on 15 Dec 2009

United Kingdom’s Met Office dataset preliminary analysis: The R script

As promised, I want to share with you the R code I used to generate all the beautiful charts of the United Kingdom’s Met Office dataset preliminary analysis post.

First of all, you need to download the dataset. I don’t want to hotlink directly the MySQL dump file that this guy produced, so just go over to his site and download it from there. In the meantime you can also see the perl script he wrote to convert the original dataset to the MySQL dump that we will be using.

Once you have downloaded the MySQL dump, uncompress it and import it into your MySQL database. In my case I created a database called “ClimateChange” and granted all rights on that database to a user called “ClimateChange” and without password.

Once you have your data in the database, you can start using R with this script available on GitHub.

Next Page »