US_income_age: United States median income and age per county

Description Usage Format Details Examples

Description

The data frame us_income_age provides median income with margin of error (moe) and median age with moe for each county in the U.S. The moe is a standard 90% confidence interval, as provided by the US Census.

Usage

1

Format

An object of class tbl_df (inherits from tbl, data.frame) with 3220 rows and 6 columns.

Details

Data was obtained from the US Census, 2015 ACS.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ggplot(US_income_age, aes(age, income)) + 
  geom_errorbarh(aes(xmin = age - age.moe, xmax = age + age.moe), height = 0) +
  geom_errorbar(aes(ymin = income - income.moe, ymax = income + income.moe), width = 0) +
  geom_point(size = 0.2) +
  facet_wrap(~state)
  
filter(US_income_age, state == "Virginia") %>%
  ggplot(aes(age, income)) + 
  geom_errorbarh(aes(xmin = age - age.moe, xmax = age + age.moe), height = 0) +
  geom_errorbar(aes(ymin = income - income.moe, ymax = income + income.moe), width = 0) +
  geom_point()

clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.