map

I put up the US county-level mortality Dataset on kaggle. I’m still convinced that mortality data was a better way to poll data on the presidential election. A lot of people were unhappy the American’s future prospect, and and think counties that had a history of self-harm, generally voted for Trump. Anyway… need more data to support that.

Simple script on Kaggle

Cool chart. Maybe some interesting correlations. This is a kaggle kernel by RobertoRuiz.

cool

This is a good example by Umesh

umesh

library(choroplethr)
library(choroplethrMaps)



# Read our input
d <- read.csv("../input/mort.csv", sep=",")
t = d[d$Category == "Neoplasms",c("FIPS","Mortality.Rate..2014.")]
t = t[t$FIPS > 1000,]  # Just want counties

# Change to c("region","value") for mapping
colnames(t)<- c("region","value")
t <- t[t$value > 0,]


county_choropleth(t,
                 title      = "Mortality Rate 2014 (Neoplasms)",
		                  legend     = "Deaths per 100,000")