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 […]

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) […]

Open Street Map Metadata in R

by on January 23, 2016

The Open Street Map project is an incredible resource for those interested in accessing worldwide geographic data, which is often as good or better than that provided by Google Maps. In addition to providing pre-rendered tiles that are acessible on the web, in R, or in QGIS, Open Street map provides access to the raw […]

{rcanvec} 0.1.4 release

by on January 14, 2016

Thanks to a GitHub issue raised by @HnyBadjr, I was able to fix a bug that didn’t properly parse NTS strings containing the letter “E” (in case you’re wondering, the algorithm to parse the NTS string starts at the beginning and stops parsing the series, which is a number, when the string can’t be converted […]

{rosm} 0.1.3 release

by on December 13, 2015

We’re excited to announce a new release of the rosm package! A feature request was posted to export the images created by rosm as a raster package object, opening up possibilities for reprojecting and writing to disk OSM tiles for use in your favourite GIS. Thanks to Timothée Giraud, maintainer of the cartography package for […]


by on December 13, 2015

Recently I was tasked with organizing a large number of geotagged images extracted from several years of field data. The photos came from a GPS with a camera, but because there were tons of duplicate files, any GPS waypoints they were associated with were lost. Enter EXIF data, the format in which date/time, GPS, resolution, […]

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