install.packages(c("choroplethr","choroplethrMaps"))
library(choroplethr)
library(choroplethrMaps)
?df_pop_state
data("df_pop_state")
head(df_pop_state)
##       region    value
## 1    alabama  4777326
## 2     alaska   711139
## 3    arizona  6410979
## 4   arkansas  2916372
## 5 california 37325068
## 6   colorado  5042853
data("df_pop_state")
head(df_pop_state)
##       region    value
## 1    alabama  4777326
## 2     alaska   711139
## 3    arizona  6410979
## 4   arkansas  2916372
## 5 california 37325068
## 6   colorado  5042853
?state_choropleth
state_choropleth(df_pop_state)

title = "2012 States Population Estimates"
state_choropleth(df_pop_state,title = "2012 States Population Estimates",legend = "Population")