Skip to content

Instantly share code, notes, and snippets.

View ashirwad's full-sized avatar

Ashirwad Barnwal ashirwad

View GitHub Profile
@ashirwad
ashirwad / california-migration-flowmap.md
Last active January 27, 2024 09:10
2020 California net migration visualization using a flow map

I once had a discussion with a colleague and he was mentioning about Californians migrating to different states in the US. This led me to think about how I could visualize California migration. Through Google search, I stumbled upon this artice from USAFacts that presents facts on 2020 California migration using data from the IRS based on filed tax returns. Additionally, I also came across an online tool called FlowmapBlue that allows users to create beautiful flow maps to visualize movements happening across pairs of origin and destination locations.

I used the data from USAFacts, wrangled it using R to create the Google Sheet that FlowmapBlue expects, and published it as a flow map that can be accessed here. As my colleague rightly pointed out, it seems Californians are avoiding Midwest due to the cold