# make plot
all_rpi %>% ggplot(aes(x = date, y = RPI)) +
geom_area(aes(fill = Team), linewidth = 2) +
scale_fill_cfb(alpha = .8) +
scale_x_continuous(breaks = c(1, 5), labels = c("April 16", "May 14")) +
scale_y_reverse(breaks = seq(0, 100, 15)) +
facet_wrap( ~Team, nrow = 2) +
theme_fivethirtyeight() +
theme(
strip.text = element_cfb_logo(size = 1),
plot.title = element_markdown(),
plot.subtitle = element_markdown(),
text = element_text(family = "Arial"),
panel.grid = element_blank(),
axis.text.x = element_blank()
) +
labs(
x = "",
y = "",
title = "ACC Baseball: RPI over the last month for every ACC team",
subtitle = "Week-to-week RPI since April 16, 2023 to May 14, 2023.",
caption = "dadgumboxscores | May 15, 2023 | data via stats.ncaa.org"
) -> rpi_plot
# save it
ggplot2::ggsave(
"rpi_plot.png",
rpi_plot,
w = 10.5,
h = 6.5,
dpi = 600,
type = 'cairo'
)
rpi_plot