Visualize the ideological position of members of US Congress on a liberal/conservative spectrum, based on voting record.
- Clone this repo
git clone https://github.com/davhbrown/congress-political-spectrum.git
- Create a new python environment if you wish, this was developed in python 3.9.12. Python 3.11+ is not supported.
pip install -r requirements.txt
cd ./congress-political-spectrum
From the command line:
bokeh serve --show simple_spectrum.py
This will open a web browser and display the plots.
Lewis, Jeffrey B., Keith Poole, Howard Rosenthal, Adam Boche, Aaron Rudkin, and Luke Sonnet (2024). Voteview: Congressional Roll-Call Votes Database. https://voteview.com/