Interactive 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 ArticleLive Earthquake Map with Shiny and Google Map API
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...
View ArticleCluster analysis on earthquake data from USGS
Theoretical Background In some cases we would like to classify the events we have in our dataset based on their spatial location or on some other data. As an example we can return to the...
View ArticleOrganize a walk around London with R
The subtitle of this post can be "How to plot multiple elements on interactive web maps in R". In this experiment I will show how to include multiple elements in interactive maps created using both...
View ArticleSpatio-Temporal Kriging in R
Preface I am writing this post more for reminding to myself some theoretical background and the steps needed to perform spatio-temporal kriging in gstat. This month I had some free time to spend on...
View ArticleWind Resource Assessment
This is an article we recently published on "Renewable and Sustainable Energy Reviews". It starts with a thorough review of the methods used for wind resource assessment: from algorithms based on...
View ArticleLearning R for Data Visualization [Video]
Last year Packt asked me to develop a video course to teach various techniques of data visualization in R. Since I love the idea of video courses and tutorials, and I also enjoy plotting data, I...
View ArticleCombining ArcGIS and R - Clustering Toolbox
Last year at the ESRI User Conference in San Diego, there was an announcement of an initiative to bridge ArcGIS and R. This became reality I think early this year with R-Bridge. Basically, ESRI has...
View ArticleTime Averages of NetCDF files from ECMWF in ArcGIS with R-Bridge
With this post I would like to talk again about R-Bridge, which allows a direct communication between ArcGIS and R. In the previous post, I presented a very simple application of R-Bridge where I built...
View ArticleThe Power of ggplot2 in ArcGIS - The Plotting Toolbox
In this post I present my third experiment with R-Bridge. The plotting toolbox is a plug-in for ArcGIS 10.3.x that allows the creation of beautiful and informative plot, with ggplot2, directly from the...
View ArticleTime Series Analysis in ArcGIS
In this post I will introduce another toolbox I created to show the functions that can be added to ArcGIS by using R and the R-Bridge technology. In this toolbox I basically implemented the functions I...
View ArticleSpatio-Temporal Point Pattern Analysis in ArcGIS with R
This post would probably be the last in my series about merging R and ArcGIS. In August unfortunately I would have to work for real and I will not have time to play with R-Bridge any more. In this post...
View ArticleLinear Models (lm, ANOVA and ANCOVA) in Agriculture
As part of my new role as Lecturer in Agri-data analysis at Harper Adams University, I found myself applying a lot of techniques based on linear modelling. Another thing I noticed is that there is a...
View ArticleGeneralized Linear Models and Mixed-Effects in Agriculture
After publishing my previous post, I realized that it was way too long and so I decided to split it in 2-3 parts. If you think something is missing in the explanation here it may be related to the fact...
View ArticleLinear Mixed Effects Models in Agriculture
This post was originally part of my previous post about linear models. However, I later decided to split it into several texts because it was effectively too long and complex to navigate. If you...
View ArticleAssessing the Accuracy of our models (R Squared, Adjusted R Squared, RMSE,...
Assessing the accuracy of our model There are several ways to check the accuracy of our models, some are printed directly in R within the summary output, others are just as easy to calculate with...
View ArticleGeneralized Additive Models and Mixed-Effects in Agriculture
Introduction In the previous post I explored the use of linear model in the forms most commonly used in agricultural research. Clearly, when we are talking about linear models we are implicitly...
View ArticlePower analysis and sample size calculation for Agriculture
Power analysis is extremely important in statistics since it allows us to calculate how many chances we have of obtaining realistic results. Sometimes researchers tend to underestimate this aspect and...
View ArticleExperiment designs for Agriculture
This post is more for personal use than anything else. It is just a collection of code and functions to produce some of the most used experimental designs in agriculture and animal science. I will...
View ArticleStreet Crime UK - Shiny App
Introduction This is a shiny app to visualize heat maps of Street Crimes across Britain from 2010-12 to 2018-01 and test their spatial pattern. The code for both ui.R and server.R is available from my...
View ArticleData Visualization Website with Shiny
My second Shiny app is dedicated to data visualization. Here users can simply upload any csv or txt file and create several plots:Histograms (with option for faceting)Barchart (with error bars, and...
View ArticleSpreadsheet Data Manipulation in R
Today I decided to create a new repository on GitHub where I am sharing code to do spreadsheet data manipulation in R. The first version of the repository and R script is available here:...
View ArticleGeocoding function
This is a very simple function to perform geocoding using the Google Maps API: getGeoCode <- function(gcStr, key) { library("RJSONIO") #Load Library gcStr <- gsub('','%20',gcStr) #Encode URL...
View ArticleWeather Forecast from MET Office
This is another function I wrote to access the MET office API and obtain a 5-day ahead weather forecast:METDataDownload <- function(stationID, product, key){ library("RJSONIO") #Load Library...
View ArticleShiny App to access NOAA data
Now that the US Government shutdown is over, it is time to download NOAA weather daily summaries in bulk and store them somewhere safe so that at the next shutdown we do not need to worry. Below is the...
View Article