get_county_demographics: Get a handful of demographic variables on US Counties from...

View source: R/get_usa_demographics.R

get_county_demographicsR Documentation

Get a handful of demographic variables on US Counties from the US Census Bureau as a data.frame.

Description

The data comes from the American Community Survey (ACS). The variables are total population and median household income.

Usage

get_county_demographics(endyear = 2013, span = 5)

Arguments

endyear

The end year for the survey

span

The span of the survey

Examples


# 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)


choroplethr documentation built on April 12, 2025, 1:10 a.m.