Category: maps
Everything filed under maps.
A Path Towards Easier Map Projection Machinations with ggplot2
The $DAYJOB doesn't afford much opportunity to work with cartographic datasets, but I really like maps and tinker with shapefiles and geo-data when I can, plus answer a ton of geo-questions on StackOverflow. R makes it easy—one might even…
Using the new 'viridis' colormap in R (thanks to Simon Garnier)
Nathaniel Smith and Stéfan van der Walt presented a new colormap (for Python) at SciPy 2015 called viridis…
Faceted "World Population by Income" Choropleths in ggplot
Poynter did a nice interactive piece on world population by income (i.e. "How Many Live on How Much, and Where" ). I'm always on the lookout for optimized shapefiles and clean data (I'm teaching a data science certificate program starting…
Animated US Hexbin Map of the Avian Flu Outbreak
The recent announcement of the start of egg rationing in the U.S. made me curious enough about the avian flu outbreak to try to dig into the numbers a bit. I finally stumbled upon a USDA site that had an embedded HTML table of flock…
U.S. Drought Monitoring With Hexbin State Maps in R
On the news, today, of the early stages of drought hitting the U.S. northeast states I decided to springboard off of yesterday's post and show a more practical use of hexbin state maps than the built-in (and still purpose unknown to me)…
Simple Lower US 48 Albers Maps & Local (no-API) City/State Geocoding in R
I've been seeing an uptick in static US "lower 48" maps with "meh" projections this year, possibly caused by a flood of new folks resolving to learn R but using pretty old documentation or tutorials. I've also been seeing an uptick in…
Making Static & Interactive Maps With ggvis (+ using ggvis maps w/shiny)
Even though it's still at version 0.4, the ggvis package has quite a bit of functionality and is highly useful for exploratory data analysis (EDA). I wanted to see how geographical visualizations would work under it, so I put together six…
Power Outage Impact Choropleths In 5 Steps in R (featuring rvest & RStudio "Projects")
I and @awpiii were trading news about the power outages in Maine & New Hampshire last night and he tweeted the link to the @PSNH Outage Map. As if the Bing Maps tiles weren't bad enough, the use of a categorical color scale instead of a…
Moving The Earth (well, Alaska & Hawaii) With R
In a previous post we looked at how to use D3 TopoJSON files with R and make some very D3-esque maps. I mentioned that one thing missing was moving Alaska & Hawaii a bit closer to the continental United States and this post shows you how…
Spending Seized Assets - A State-by-State Per-capita Comparison in R
The Washingon Post did another great story+vis, this time on states Spending seized…