Browsing Articles Written by

Davide Massidda

Dottore di ricerca in psicologia sperimentale, mi occupo di consulenza statistica nel campo delle scienze psicologiche, sanitarie e sociali.

Building a choropleth map of Italy using mapIT

R blog By January 20, 2015 Tags: , , , , 7 Comments

In the R environment, different packages to draw maps are available. I lost the count by now; surely, sp and ggmap deserve consideration. Despite the great availability of R functions dedicated to this topic, in the past, when I needed to draw a very basic map of Italy with regions marked with different colours (namely a choropleth map), I had a bit of difficulties.

Share:

How to open an SPSS file into R

R blog By March 26, 2014 Tags: , , No Comments

R is a powerful system for statistical analysis and data visualization. However, it’s not exactly user-friendly for data storage, so, still for several time your data will be archived using Excel, SPSS or similar programs.

How to open into R a file stored using the SPSS (.sav) format? There are some packages as foreign which allow to perform this operation. The package foreign is already present in the base distribution of R system and you just need to activate it using the function library().

Share: