You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dvName<-"CountPerCapitaAnnual"#The number of victims per county population; darker counties have more victims, adjusted for popdsValueAllVariables$DV<-dsValueAllVariables[, dvName]
# dsValueAllVariables$DVLabel <- round(dsValueAllVariables$DV, 2) #Keeps# leading zerosdsValueAllVariables$DVLabel<- gsub("^0.", ".", round(dsValueAllVariables$DV,
3)) #Remove leading zeros.
MapCounties(dsValueAllVariables, deviceWidth=14)
dvName<-"CountPerCapitaRank"#The county's rank for the number of victims per county population; darker counties have more victims, adjusted for popdsValueAllVariables$DV<-dsValueAllVariables[, dvName]
dsValueAllVariables$DVLabel<-dsValueAllVariables$DV
MapCounties(dsValueAllVariables, deviceWidth=14)
dvName<-"Count"#The county's rank for the number of victims per county population; darker counties have more total victimsdsValueAllVariables$DV<-dsValueAllVariables[, dvName]
dsValueAllVariables$DVLabel<-scales::comma(dsValueAllVariables$DV)
MapCounties(dsValueAllVariables, deviceWidth=14)
dvName<-"PopTotal"#The county's 2010 census population; darker counties have more peopledsValueAllVariables$DV<-dsValueAllVariables[, dvName]
dsValueAllVariables$DVLabel<-scales::comma(dsValueAllVariables$DV)
MapCounties(dsValueAllVariables, deviceWidth=14)