Publications by Fabio Veronesi

Downloading and Visualizing Seismic Events from USGS

28.04.2015

The unlucky events that took place in Nepal have flooded the web with visualization of the earthquakes from USGS. They normally visualize earthquakes with a colour scale that depends on the age of the event and a marker size that depends on magnitude. I remembered that some time ago I tested ways for downloading and visualizing data f...

4429 sym R (2483 sym/10 pcs) 2 img 1 tbl

Extract values from numerous rasters in less time

07.05.2015

These days I was working with a Shiny app for which the computation time is a big problem.Basically this app takes some coordinates, extract values from 1036 rasters for these coordinates and make some computations.  As far as I can (and please correct me if I’m wrong!) tell there are two ways of doing this task:1) load all the 103...

3926 sym R (1384 sym/7 pcs)

Run Shiny app on a Ubuntu server on the Amazon Cloud

08.05.2015

This guide is more for self reference than anything else.  Since I struggled for two days trying to find all the correct setting to complete this task, gathering information from several websites, I decided to write a little guide on this blog so that if I want to do it again in the future and I do not remember anything (this happens...

8080 sym

Exchange data between R and the Google Maps API using Shiny

10.05.2015

A couple of years ago I wrote a post about using Shiny to exchange data between the Google Maps API and R: http://r-video-tutorial.blogspot.ch/2013/07/interfacing-r-and-google-maps.htmlBack then as far as I remember Shiny did not allow a direct exchange of data between javascript, therefore I had to improvise and extract data indirec...

5516 sym R (6062 sym/2 pcs)

Global Economic Maps

12.05.2015

IntroductionIn this post I am going to show how to extract data from web pages in table format, transform these data into spatial objects in R and then plot them in maps.ProcedureFor this project we need the following two packages: XML and raster.The first package is used to extract data from HTML pages, in particular from the sections marked wit...

361 sym R (15930 sym/19 pcs) 6 img 6 tbl

Interactive maps for the web in R

15.05.2015

Static MapsIn the last post I showed how to download economic data from the World Bank’s website and create choropleth maps in R (Global Economic Maps).In this post I want to focus more on how to visualize those maps.Sp PackageProbably the simplest way of plotting choropleth maps in R is the one I showed in the previous post, using the function...

9263 sym R (4433 sym/6 pcs) 10 img

Introductory Time-Series analysis of US Environmental Protection Agency (EPA) pollution data

18.05.2015

Download EPA air pollution data The US Environmental Protection Agency (EPA) provides tons of free data about air pollution and other weather measurements through their website. An overview of their offer is available here: http://www.epa.gov/airdata/The data are provided in hourly, daily and annual averages for the following parameters:Ozone, SO...

9173 sym R (6103 sym/18 pcs) 10 img

Introductory Point Pattern Analysis of Open Crime Data in London

21.05.2015

IntroductionPolice in Britain (http://data.police.uk/) not only register every single crime they encounter, and include coordinates, but also distribute their data free on the web.They have two ways of distributing data: the first is through an API, which is extremely easy to use but returns only a limited number of crimes for each request, the ...

17113 sym R (4959 sym/21 pcs) 22 img

Interactive maps of Crime data in Greater London

25.05.2015

In the previous post we looked at ways to perform some introductory point pattern analysis of open data downloaded from Police.uk. As you remember we subset the dataset of crimes in the Greater London area, extracting only the drug related ones. Subsequently, we looked at ways to use those data with the package spatstat and perform ba...

10504 sym R (1526 sym/10 pcs) 8 img

Live Earthquake Map with Shiny and Google Map API

27.05.2015

In the post Exchange data between R and the Google Maps API using Shiny I presented a very simple way to allow communication between R and javascript using shiny.This is an example of a practical approach for which that same system can be used to create a useful tool to visualize seismic events collected from USGS in the Google Maps A...

1546 sym R (11125 sym/2 pcs) 2 img