Digital Geography

Webmaps with R: the leaflet package for R

Some months ago I published qgis2leaf which enables a QGIS user to publish a webmap the easy way. It was integrated into qgis2web which offers a leaflet and a openlayers based output for qgis users. But what about R users? Jean-Francois recently published a longer post about GPX tracks and to publish them using some heavy coding. So let’s welcome leaflet for R: an easy leaflet webmap exporter.

Overview: R Cheat Sheets

Recently we had a discussion about where to find a nice cheat sheet (No! We are not talking about Simon the Sorcerer walk-throughs). Especially for scripting languages cheat sheets are an excellent way to support your learning attempts and are a handy tool for your every work in data visualisation, automation of tasks and analysis steps. So let’s have a look on R cheat sheets.

Create custom markers with R for your webmap

When it comes to webmapping there are thousands of possible markers you can choose from but when it comes to markers depending on the data, which is inside the shapefile, possibilities are more limited. In leaflet you can define different icons according to the attributes of your data by defining the icon url in an attribute. Let me show you, how to use the data in each feature to create a custom icon like a piechart marker using R.