admin |>
filter(type_of_procedure != "TOTAL") |>
pivot_longer(
cols = c(carrier_upheld_by_mia_numner,
carrier_revesered_by_mia_number,
carrier_modifed_by_mia_numbner),
names_to = "decision",
values_to = "count"
) |>
ggplot(aes(x = type_of_procedure, y = count, fill = decision)) +
geom_bar(stat = "identity", position = position_dodge()) +
facet_wrap(~ year, ncol = 2) +
labs(
title = "MIA Appeal Decisions by Procedure Type (2021-2024)",
x = "Type of Procedure",
y = "Number of Decisions",
fill = "Decision Type",
caption = "Source: Maryland Insurance Administration"
) +
theme_minimal() +
theme(axis.text.x = element_text(angle = 90, hjust = 1, size = 7))