🇨🇨 🇨🇽 🇵🇹 🇩🇴 🇫🇲 🇰🇷 Recently I wrote a little package for R called flagfillr (you can read more details here). One of the main reasons I made this is because I had seen a few maps of economic partners, for example this one, from here: These types of maps (some more here, of the US) are interesting visual summaries, but they look a little Excel to me (sorry, whoever made it!
(This turned out to be a bit of a ramble, for the code go here 😄)
My PhD thesis focused on latent variable models as a way to model legislative voting behaviour. The main model I used is called the Bayesian Item Response model, and the idea is that, from the observed votes of the legislators, we can build a scale on which we can place them, relative to one another.