Web mapping with Leaflet and R

Leaflet is a JavaScript library that has become quite popular for creating interactive maps. One way to create a map using the Leaflet JS library is to include the Leaflet JS and CSS files in the head of a web page and then set up the map in the body of the html page.

An alternative way is to create the web map in the R environment using an R package called leaflet, developed by the guys from RStudio, which allows controlling and integrating Leaflet maps in R. In this post I explain how to read into R a vector map in shapefile format and create a leaflet web map customizing how the vector map is displayed. I also show how to add a legend, a layers control and popups for displaying attribute data.


TOC Shiny web app

This R Shiny web application allows the construction of the Receiver (aka Relative) Operating Characteristic (ROC) curve and the Total Operating Characteristic (TOC) curve for spatial and non-spatial data through a graphical user interface. The ROC curve is a widely-popular statistical technique used for evaluating the performance of a binary classifier system as its discrimination threshold is varied. The TOC method is a novel modification of the ROC method that has been introduced recently by Professor Pontius from Clark University.


Optimal spatial sampling networks

This book chapter shows how optimal spatial networks for second-phase sampling of soil organic carbon were designed based on the spatial information obtained during a first-phase sampling. Additional points supplementing the existing initial sampling set were allocated in random and regular configurations following two different approaches: sequential and simultaneous addition. The search for the optimal set of additional points was performed using an evolutionary optimization technique known as genetic algorithms.