mbod / comm318_F21_Project_Group1

0 stars 0 forks source link

Notes on `voting_data.ipynb` #4

Closed mbod closed 2 years ago

mbod commented 2 years ago

Notebook: data_analysis/voting_data.ipynb

  1. the number of counties that went Rep/Dem in 2020

image

  1. The point difference variable broken down by outcome - this seems like what you were hoping to investigate with the scatter plot:

image

but a better way to do this is with a box plot

image

to me this more clearly illustrates what you were trying to get at with the scatter plot above I think. For the counties won by Republicans there was a large point difference that for those won by Democrats.

  1. outcome (categorical) image

  2. combine outcome and point diff so -1 to 1 maps to Dem to Rep

image

this seems interesting at it shows the outcome and the strength of that outcome

the colormap blue-white-red is one issue as you get counties with white colors for those close to zero (either on the plus or minus) so it is less clear what the outcome is.

I played around with a Blue-Red colormap to see if that made it clearer

image

but am not entirely convinced it is an improvement