I came across the visualization of US opioid epidemic made by Kieran Healy in his book “Data Visualization: A Practical Introduction” (Link). He has used data through 2014 but in recent years the epidemic has become worse. So I extended the data to 2017 by downloading it from Kaiser Family Foundation’s website. After cleaning up the data, I ended up with an unbalanced panel of 50 states over 1999 to 2017.
In this post I show how to make a simple animation depicting the changing composition of Indian Parliament between 1998 and 2014, which was the last election year. In India there are several political parties and two major coalitions: National Democratic Alliance (NDA) and United Progressive Alliance (UPA). NDA leans right while UPA leans left. However, each of the coalitions is made up of several parties that have different ideologies.