My first interactive map with Shiny

Shiny is an amazing R package that makes it easy to build interactive web applications. Combined with RStudio it becomes a powerful tool allowing you to design, test and finally deploy your application on the web. In addition, you can freely host your app on the shinyapps server. I discovered Shiny one year ago, while working on a method to generate weights of ordered weighted averaging aggregation operators. I usually put all my scripts online, but in this work I wanted a more user-friendly way of sharing information. This is why I got interested into Shiny and developed my first web application. This application is very basic but it gave me the opportunity to learn more about Shiny and how I can use it as researcher to reach a broader audience by developing vizualization tools along with my academic research articles. In this post, I’ll present you a few things I learned while developping my first interactive maps with Shiny.

Web automation with Selenium and Python

I recently discovered Selenium, a very useful tool to automate browsers navigation. Selenium allows to write scripts to automatically perform actions on a web browser: visit a page, click on a link, fill in a form… and retrieve the results of these actions. In this post, I am going to show you how to use Selenium from Python to automatically send messages to a list of Flickr contact through a contact form from your Flickr account.

PostGIS & R

Lately, I have been facing several times the same problem while trying to spatially aggregate milion of spatial points over a spatial distribution of thousands of (not overlapping) polygons: How to efficiently identify the polygon in which every point is located? Indeed, as the number of elements increases R starts to become less and less efficient. In this post, I am going to show you how to efficiently perform operations between geometries by interfacing with PostGIS from R.

Plotting temporal trajectories on Google Earth with Python

In this post I’m going to show you how to display temporal trajectories on Google Earth using the python package simplekml. This package enables us to generate KML videos that we can then plot and record on Google Earth. The python script described in this post is available on my GitHub account.

3D bar plot on a map in R

In this post we are going to learn how to plot 3D barplots on a map using R. It is actually not as complicated as it looks. As we will see below, we only need to draw a perspective map using the function persp and then plot the barplots on it.