View source: R/get_usa_demographics.R
get_county_demographics | R Documentation |
The data comes from the American Community Survey (ACS). The variables are total population and median household income.
get_county_demographics(endyear = 2013, span = 5)
endyear |
The end year for the survey |
span |
The span of the survey |
# get some demographic data on US counties from the 2010 5-year ACS
df = get_county_demographics(endyear=2010, span=5)
# A choropleth map shows the location of the values.
# Set the 'value' column to be the column we want to render.
df$value = df$median_hh_income
county_choropleth(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.