Box-plot with R – Tutorial
Yesterday I wanted to create a box-plot for a small dataset to see the evolution of 3 stations through a 3 days period. I like box-plots very much because I think they are one of the clearest ways of...
View ArticleInterfacing R and Google maps
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...
View ArticleDisplaying spatial sensor data from Arduino with R on Google Maps
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...
View ArticlePlotting an Odd number of plots in single image
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...
View ArticleMerge .ASC grids with R
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:...
View ArticleExtract Coordinates and Other Data from KML in R
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...
View ArticleTransform point shapefile to SpatStat object
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...
View ArticleChanging the Light Azimuth in Shaded Relief Representation by Clustering Aspect
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...
View ArticleR Object-oriented Programming - Book Review
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...
View ArticleWorld Point Grid
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...
View ArticleAccessing, cleaning and plotting NOAA Temperature Data
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...
View ArticleDownloading and Visualizing Seismic Events from USGS
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...
View ArticleExtract values from numerous rasters in less time
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...
View ArticleRun Shiny app on a Ubuntu server on the Amazon Cloud
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...
View ArticleExchange data between R and the Google Maps API using Shiny
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...
View ArticleGlobal Economic Maps
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...
View ArticleInteractive maps for the web in R
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...
View ArticleIntroductory Time-Series analysis of US Environmental Protection Agency (EPA)...
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...
View ArticleIntroductory Point Pattern Analysis of Open Crime Data in London
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...
View ArticleInteractive maps of Crime data in Greater London
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...
View Article