Skip to content

Instantly share code, notes, and snippets.

View paezha's full-sized avatar

Antonio Paez paezha

View GitHub Profile
@paezha
paezha / birth_marriage_counties.R
Created January 31, 2025 12:47 — forked from vgXhc/birth_marriage_counties.R
Map to compare percentage of married population and percent of people who gave birth in past 12 mo to US average
library(tidycensus)
library(tidyverse)
library(sf)
library(tmap)
birth <- get_acs(geography = "county", year = 2023, table = "B13002", geometry = TRUE,
summary_var = "B13002_001")
marriage <- get_acs(geography = "county", year = 2023, table = "B12001",
summary_var = "B12001_001")