Quantcast
Channel: R tutorial for Spatial Statistics
Browsing latest articles
Browse All 25 View Live
↧

Image may be NSFW.
Clik here to view.

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 Article


Image may be NSFW.
Clik here to view.

Live 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 Article


Image may be NSFW.
Clik here to view.

Cluster 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 Article

Image may be NSFW.
Clik here to view.

Organize 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 Article

Image may be NSFW.
Clik here to view.

Spatio-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 Article


Wind 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 Article

Image may be NSFW.
Clik here to view.

Learning 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 Article

Image may be NSFW.
Clik here to view.

Combining 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 Article


Image may be NSFW.
Clik here to view.

Time 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 Article


Image may be NSFW.
Clik here to view.

The 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 Article

Image may be NSFW.
Clik here to view.

Time 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 Article

Image may be NSFW.
Clik here to view.

Spatio-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 Article

Image may be NSFW.
Clik here to view.

Linear 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 Article


Image may be NSFW.
Clik here to view.

Generalized 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 Article

Image may be NSFW.
Clik here to view.

Linear 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 Article


Image may be NSFW.
Clik here to view.

Assessing 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 Article

Image may be NSFW.
Clik here to view.

Generalized 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 Article


Image may be NSFW.
Clik here to view.

Power 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 Article

Image may be NSFW.
Clik here to view.

Experiment 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 Article

Image may be NSFW.
Clik here to view.

Street 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 Article

Image may be NSFW.
Clik here to view.

Data 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 Article


Spreadsheet 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 Article


Geocoding 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 Article

Weather 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 Article

Image may be NSFW.
Clik here to view.

Shiny 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

Browsing latest articles
Browse All 25 View Live