county | R Documentation |
Data for 3142 counties in the United States. See the
county_complete
data set for additional variables.
county
A data frame with 3142 observations on the following 14 variables.
County names.
State names.
Population in 2000.
Population in 2010.
Population in 2017.
Population change from 2010 to 2017.
Percent of population in poverty in 2017.
Home ownership rate, 2006-2010.
Percent of housing units in multi-unit structures, 2006-2010.
Unemployment rate in 2017.
Whether the county contains a metropolitan area.
Median education level (2013-2017).
Per capita (per person) income (2013-2017).
Median household income.
Describes whether the type of county-level
smoking ban in place in 2010, taking one of the values "none"
,
"partial"
, or "comprehensive"
.
These data were collected from Census Quick Facts (no longer available as of 2020) and its accompanying pages. Smoking ban data were from a variety of sources.
county_complete
library(ggplot2)
ggplot(county, aes(x = median_edu, y = median_hh_income)) +
geom_boxplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.