films <- read_csv("data/films.csv")
films |>
mutate(Films = if_else(is.na(Films), "(I can't recall)", Films)) |>
mutate(Films = fct_lump_min(Films, min = 6, other_level = "Other")) |>
filter(Films != "Other") |>
mutate(Films = fct_infreq(Films)) |>
ggplot(aes(y = Films)) +
geom_bar(fill = "skyblue") +
theme_minimal() +
labs(y = "",
title = "What's the last film you saw in a theater?",
subtitle = "From the sta199-s26 survey",
caption = "(Films with fewer than 6 responses were omitted for readability.)")