Publications by Fabio Veronesi

Interfacing R and Google maps

30.07.2013

IntroductionI couple of weeks ago I had an idea for a website where people can collaborate to create the first real Audio Atlas, using the power of the Google Maps API. The problem was that I do some programming in R but I did know very few things about HTML and javascript. However, I knew that having a project was a good way to get serious abo...

8163 sym R (3403 sym/5 pcs) 2 img

Displaying spatial sensor data from Arduino with R on Google Maps

26.02.2014

For Christmas I decided to treat myself with an Arduino starter kit. I started doing some basic experiments and I quickly found out numerous website that sell every sort of sensor: from temperature and humidity, to air quality. Long story short, I bought a bunch of sensors to collect spatial data. I have a GPS, accelerometer/magnetometer, barome...

6827 sym 10 img

Plotting an Odd number of plots in single image

03.03.2014

Sometimes I have the need to reduce the number of images for a presentation or an article. A good way of doing it is putting multiple plot on the same tif or jpg file.R has multiple functions to achieve this objective and a nice tutorial for this topic can be reached at this link: http://www.statmethods.net/advgraphs/layout.htmlThe mo...

3239 sym R (686 sym/2 pcs) 8 img

Merge .ASC grids with R

02.04.2014

A couple of years ago I found online a script to merge several .asc grids into a single file in R.I do not remember where I found it but if you have the same problem, the script is the following: setwd("c:/temp") library(rgdal) library(raster) # make a list of file names, perhaps like this: f <-list.files(pattern = ".asc")...

2015 sym R (880 sym/3 pcs) 2 img

Extract Coordinates and Other Data from KML in R

11.06.2014

KML files are used to visualize geographical data in Google Earth. These files are written in XML and allow to visualize places and to attach additional data in HTML format.In these days I am working with the MIDAS database of wind measuring stations across the world, which can be freely downloaded here:http://badc.nerc.ac.uk/search/midas_station...

3555 sym R (1981 sym/4 pcs)

Transform point shapefile to SpatStat object

19.08.2014

Today I wanted to do some point pattern analysis in R using the fantastic package spatstat.The problem was that I only had a point shapefile, so I googled a way to transform a shapefile into a ppp object (which is the point pattern object used by spatstat). I found a method that involves the use of as.ppp(X) to transform both spatial points and s...

2159 sym

Changing the Light Azimuth in Shaded Relief Representation by Clustering Aspect

24.09.2014

Some time ago I published an article on “The Cartographic Journal” regarding a method to automatically change the light azimuth in shaded relief representations.This method was based on clustering the aspect derivative of the DTM. The method was developed originally in R and then translated into ArcGIS, with the use of model build...

3593 sym

R Object-oriented Programming – Book Review

28.11.2014

I have been asked to review the book “R Object-oriented Programming” by Kelly Black, edited by Packt publishing (£14.45 for the E-Book, £27.99 for Print+E-Book).The scope of the book is “to provide a resource for programming using the R language” and therefore it can be seen as a good and practical introduction to all the most commonly...

6004 sym 2 img

World Point Grid

10.12.2014

These days I am following a couple of master projects dealing with renewable energy potentials at the global scale. We wanted to try and compute these potential using only free data and see how far we could go.For wind speed there are plenty of resources freely available on the web. In particular my students downloaded the daily avera...

4423 sym R (931 sym/1 pcs)

Accessing, cleaning and plotting NOAA Temperature Data

11.12.2014

In my previous post I said that my students are using data from NOAA for their research.NOAA in fact provides daily averages of several environmental parameters for thousands of weather stations scattered across the globe, completely free. In details, NOAA provides the following data: Mean temperature for the day in degrees Fahrenhei...

7387 sym R (5257 sym/5 pcs) 8 img