Postal Codes in Color
All US postal codes visualized in order. Credit: Matthew Miller (built with Tableau)

Postal Codes in Color

Confession: I’m a data nerd. 

If you aren’t a data nerd, or you don’t want to risk becoming a data nerd, you may want to keep scrolling. This is going to get rather data nerdy.

Think of your postal code — or ZIP Code, as we call them in the US. As a kid, I lived in 02919 in the Northeast. Later, I lived in Texas in 75771. At some point, I learned that American postal codes are sorted roughly from northeast to southwest.

Later, I lived in the Netherlands. My postal code was 6226 in the southeast. I noticed that postal codes near Amsterdam in the north, however, all had lower numbers.

I realize as I write this how nerdy this must sound, but I have long wondered: how do other countries sort their postal codes? North to south? East to west? At random?

What! You’ve never wondered that?

Naturally, I knew the best way to see and understand postal code sort orders around the world… would be to use Tableau, the world's leading tool for seeing and understanding data.

Here’s the result:

All US postal codes -- before adding color.

I’ll share my process in detail; hopefully you’ll find this interesting and useful. 

To get started, I found a database of global postal codes. (link

Then I indexed them all from one to 100,000 alphabetically and colored them by that index. Naturally, I did this with Tableau Prep:

Now, to visualize. Tableau’s built-in geocoding meant I had [nearly] all postal code geometry available immediately.

But how to make the colors pop? Enter custom color palettes. Borrowing an open source palette called “Turbo Colormap,” I created a custom palette using the preferences.tps file. For those of you younger than 30, this is called “XML” and it’s like an early form of JSON. 

Turbo Colormap
The venerable preferences.tps file. So little known, so powerful.


Then I started to have some fun w/ the data: putting together fun ways to explore and navigate so anyone could explore the postal code sort orders of any country. 

It's a SIN() of the times...

Finally, I assembled my story — using Story Points, naturally. Then I ran the result by several incredibly talented experts — friends from the Tableau community. Many thanks to Christian Felix , Candra McRae , Yoshihito Kimura , Pahola Diaz , and Mark Bradbourne, CBIP .

Check out the finished product here on Tableau Public — and download Tableau Public (it’s free!) to play with this data yourself.

Palak Mazumdar

Director - Big Data & Data Science & Department Head at IBM

8mo

Looking for Tableau Certification resources? Look no further! www.analyticsexam.com/tableau-certification is your go-to destination. 📝📊 #TableauPreparation #DataSkills 📚

Like
Reply
Timothy Vermeiren

Lead Developer at Biztory

9mo

I can’t count how many times I’ve made a postcodes-in-colors map any more! Probably every time I got my hands on a data set with postal codes…

Matthew Miller

Product management leader focused on making analytics fast, easy, and universal.

9mo

And Belarus... with lines! So fun. I wonder how it would look to zero-index all country postal code lines and overlay them. It would probably be complete cacophony without some smoothing and clustering. Maybe there's a way to generate an average direction for each and show it as an arrow. Probably someone smarter than me could figure this out.

  • No alternative text description for this image
Matthew Miller

Product management leader focused on making analytics fast, easy, and universal.

9mo

Switzerland... so orderly, it's soothing.

  • No alternative text description for this image
Like
Reply
Matthew Miller

Product management leader focused on making analytics fast, easy, and universal.

9mo

Australia... what's going on with the Northern Territory?

  • No alternative text description for this image
Like
Reply

To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics