SEND ME EMAIL.

Send it to j.harry.caufield@gmail.com please.

           

123 Street Avenue, City Town, 99999

(123) 555-6789

email@address.com

 

You can set your address, phone number, email and site description in the settings tab.
Link to read me page with more information.

severalog

Hexagonal statebins, or hive-like maps

Harry Caufield

I was excited to see a hexagonal statebin map on an NPR politics article this week. It reminded me of my exploration of statebins back in March, though obviously I wasn't trying to predict any elections. Remember that basic statebins may look like this:

statebins_ex.jpeg

(There's no meaning to this data - it's just an example.)

The author of the R statebins package made a short walkthrough last year about how to make a hexagonal version. It requires some geometry and geography-specific packages - I ran into some configuration issues with those and couldn't replicate the results - but the provided results look nice. (Potentially related: a hexagonal heatmap.

NPR sure seems to like hexagonal state maps. Someone was apparently inspired by that post and made a straightforward implementation called rGridMap*. Its output looks like this:

rGridMap assumes that the fill variable is categorical rather than continuous.

The overall idea of statebins probably isn't palatable to everyone and I'd suspect that hexagons only exacerbate the issue. The hex approach looks fun, though.

 

*Bucking the trend of "RPackageName" or "rpackagename".