Holes in ggplot polygons

by on July 13, 2016

As part of my efforts to construct an R package connecting ggplot and Spatial objects, I came across an issue with ggplot involving holes in polygons. According to the collective knowledge of StackOverflow, it’s possible to make this happen by putting the coordinates in the correct clockwise/counterclockwise order, extending geom_polygon() somehow, or other really complicated […]

Spatial data in ggplot2

by on July 12, 2016

I recently figured out how to use the ggplot2 framework to plot raster data, which led me to write a package extending ggplot2 for more convenient spatial data geometries. Ever wanted a geom_spatial() for those SpatialPolygonsDataFrames and RasterBricks you’ve got kicking around? Well…maybe you did or didn’t, but the ggspatial package is now here for […]

Mapping R Package Updates

by on April 12, 2016

The past few months haven’t been particularly productive on the R package front (I’ve mostly been using R for plotting lakes data), but small updates here and there have led to a bunch of exciting new features in the prettymapr, rosm, and rcanvec packages. Things like geocoding, finding a bounding box containing multiple queries, exporting […]

Prairie Coordinates release 0.4.2

by on April 4, 2016

After an email complaint about the app crashing when the “search by GPS” screen was loaded, I looked into some of the changes that were introduced with the Android 6.0 platform. The issue was a SecurityException that was thrown because in Android 6.0, certain permissions require the app to explicitly ask the user, including the […]

Mapping GPS Data to Open Street Map Roads

by on March 29, 2016

The problem of matching GPS points collected from a phone or dedicated GPS device to actual defined roadways is becoming more prevalent as insurance companies move to sensor-based platforms for risk management. In a recent Upwork contract, I was tasked with this problem for an insurance company providing sensor-based risk management for insurance providers in […]

The missing list comprehensions in R

by on March 13, 2016

The first problem I had with making the move to R from Python was the lack of the list comprehension, which in python lets you easily create new vectors (well, lists, because it’s Python) by evaluating a function. In R this is mostly taken care of because all the base functions (and most package functions) […]

qosm: Open Street Map tiles in QGIS

by on March 11, 2016

There was once a time in QGIS where getting Open Street Map basemaps was tricky. ArcGIS long since solved this problems with ready-made basemaps available with a few clicks, but in QGIS there was the OpenLayers plugin, which was a rough go to use. In the first GIS short course I taught, this was the […]

DFLite: The Quick & Easy Python DataFrame

by on March 10, 2016

The data frame was a concept I first came across in R, where it is a fundemental component of data analysis. Never having done much data analysis in Python, I came across a situation where I needed a data frame but didn’t know about the pandas implementation, so I went about writing my own DataFrame […]

WP Facebook Like Send & Open Graph Meta powered by TutsKid.com.