df_state_demographics | R Documentation |
A data.frame containing demographic statistics for each state plus the District of Columbia.
data(df_state_demographics)
Data comes from the 2013 5-year American Community Survey (ACS). Data generated by ?get_state_demographics.
## Not run:
library(choroplethr)
data(df_state_demographics)
# examine the 2013, 5-year state percent hispanic estimates as a boxplot and choropleth
# the boxplot shows the distribution
boxplot(df_state_demographics$percent_hispanic)
# the choropleth map shows the location of the values
# first set the 'value' column to be the column we want to render
df_state_demographics$value = df_state_demographics$percent_hispanic
state_choropleth(df_state_demographics)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.