Easy web publishing from R
Write
R Markdown
documents in RStudio.
Share them here on RPubs.
(It’s free, and couldn’t be simpler!)
Get Started
Recently Published
Government Funding
Infrastructure Funding: Which States Score Big — And Is It Fair?
This analysis investigates whether federal funding under the Infrastructure Investment and Jobs Act (IIJA) is distributed equitably across the 50 U.S. states. Using three datasets — federal funding allocations, U.S. Census population data, and 2020 presidential election results — we examine the relationship between population size, political alignment, and federal investment.
The analysis unfolds in three phases. First, we compare the top 30 most populated states against the top 30 most funded states, identifying exceptions where funding does not follow population. A dumbbell chart quantifies exactly how far off these outlier states are from their expected share. Second, we shift to a per capita lens, mapping federal funding per person across all 50 states to reveal which citizens receive the most and least federal investment regardless of state size. Third, we introduce the political dimension — using choropleth maps, diverging bar charts, scatter plots with regression lines, and a Wilcoxon rank-sum statistical test to determine whether states that voted for Biden in 2020 received preferential treatment in IIJA funding allocations.
Key findings include a strong but imperfect correlation between population and total funding, significant per capita disparities favoring smaller states, and a statistical verdict on whether red or blue alignment predicts funding outcomes.
Built in R using ggplot2, dplyr, ggtext, ggrepel, and the maps package.
Author: Candace Grant | AI Engineer & Data Scientist | Birds and Roses LLC
Analisis dan Visualisasi Diamonds
Visualisasi ini menggunakan data yang bersumber dari R, yaitu dataset diamonds, yang memuat informasi tentang cut, color, clarity, dan atribut lain dari berlian tersebut.