U.S. Drought Animations with the “Witch’s Brew” (purrr + broom + magick)

This is another purrr-focused post but it’s also an homage to the nascent magick package (R interface to ImageMagick) by @opencpu. We’re starting to see/feel the impact of the increasing drought up here in southern Maine. I’ve used the data from the U.S. Drought Monitor before on the blog, but they also provide shapefiles and… Continue reading

52Vis Week #3 – Waste Not, Want Not

The Wall Street Journal did a project piece [a while back](http://projects.wsj.com/waste-lands/) in the _”Waste Lands: America’s Forgotten Nuclear Legacy”_. They dug through [Department of Energy](http://www.lm.doe.gov/default.aspx?id=2602) and [CDC](http://www.cdc.gov/niosh/ocas/ocasawe.html) data to provide an overview of the lingering residue of this toxic time in America’s past (somehow, I have to believe the fracking phenomena of our modern era… Continue reading

Easier Composite U.S. Choropleths with albersusa

Folks who’ve been tracking this blog on R-bloggers probably remember [this post](https://rud.is/b/2014/11/16/moving-the-earth-well-alaska-hawaii-with-r/) where I showed how to create a composite U.S. map with an Albers projection (which is commonly referred to as AlbersUSA these days thanks to D3). I’m not sure why I didn’t think of this earlier, but you don’t _need_ to do those… Continue reading

Primary Plotting

My wife tricked me into a partial-weekend project to try to get all the primary/caucus results to-date on a map (the whole us). This is challenging since not all states use counties as boundaries for aggregate results. I’m still piecing together some shapefiles for the primary/caucus summation boundaries for a couple remaining states but I… Continue reading

Replicating NatGeo’s “Proper” Earthquake Map in R

I saw [this post](http://news.nationalgeographic.com/2015/10/151003-datapoints-what-earthquake-maps-should-really-look-like/) over at NatGeo over the weekend and felt compelled to replicate this: ![](http://news.nationalgeographic.com/content/dam/news/rights-exempt/nat-geo-staff-graphics-illustrations/2015/10/Earthquakes/logarith_big.jpg) with ggplot2. [Three shapefiles later](http://rud.is/dl/quakefiles.tgz) and we have it close enough to toss into a post (and I really don’t believe the continent names are necessary). I can only imagine how many mouse clicks that would be in… Continue reading

A Package Full o’ Pirates & Makin’ Interactive Pirate Maps in arrrrrRstats

Avast, me hearties! It’s time four t’ annual International Talk Like a Pirate Day #rstats post! (OK, I won’t make you suffer continuous pirate-speak for the entire post) I tried to be a bit more practical this year and have two treasuRe chests for you to (hopefully) enjoy. A Package Full o’ Pirates I’ve covered… Continue reading

Introducing the nominatim geocoding package

In the never-ending battle for truth, justice and publishing more R packages than [Oliver](http://twitter.com/quominus), I whipped out an R package for the [OpenStreetMap Nominatim API](http://wiki.openstreetmap.org/wiki/Nominatim). It actually hits the [MapQuest Nominatim Servers](http://open.mapquestapi.com/nominatim/) for most of the calls, but the functionality is the same. The R package lets you: – `address_lookup`: Lookup the address of one… Continue reading