HDS 3.3-3.4

Author

Naomi Dykeman

library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.6
✔ forcats   1.0.1     ✔ stringr   1.6.0
✔ ggplot2   4.0.1     ✔ tibble    3.3.0
✔ lubridate 1.9.4     ✔ tidyr     1.3.2
✔ purrr     1.2.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(ggplot2)
ggplot(midwest, aes(x = percollege, y = percbelowpoverty)) +
  geom_point(alpha = 0.6) +
  labs(
    title = "Poverty vs College Education in the Midwest",
    x = "Percent with College Degree",
    y = "Percent Below Poverty Line"
  ) 

ggplot(midwest, aes(x = popdensity, y = percollege)) +
  geom_point(alpha = 0.6) +
  labs(
    title = "Population Density vs College Educated",
    x = "Population Density (people per square mile)",
    y = "Percent College Educated"
  )