Upper Legislature Chambers. — e.g. State Senate
Lower Legislature Chambers — e.g. State House of Representatives, House of Delegates, etc.
State legislator data sources:
When possible data was retrieved using the Open States Data API in R. Otherwise, data was retrieved from state legislature websites and other publicly available information.
Election result sources - State Legislative Elections:
Election result sources - Presidential and other Election Results:
Available data varied by state - some states had the results for every available election, while for others, no data was available for even presidential elections
Demographic data was retrieved from 2016 5-year American Community Survey (ACS) estimates using Kyle Walker's fantastic R package Tidycensus
© 2018. Optimific