ggplot(analysis1, aes(x = avg_age, y = total)) +
geom_point(aes(color = District), size = 5) +
geom_smooth(method = "lm", color = "black", se = TRUE) +
geom_text(aes(label = District), vjust = -1.5, fontface = "bold") +
theme_minimal() +
labs(title = "Correlation: Avg Criminal Age vs. Crime totals",
subtitle = "Does a younger criminal demographic correlate with higher count?", caption = "https://data.baltimorecity.gov/",
x = "Average Age of Arrested Individuals", y = "Crimes total count") +
theme(plot.title = element_text(hjust = 0.5, size = 16), plot.subtitle = element_text(hjust = 0.5), legend.position = "none")