Code
library(patchwork)
p1 <- ggplot(model_data, aes(y = lib_dem)) +
geom_boxplot() +
labs(y = "Liberal Democracy Score", title = "Democracy") +
theme_minimal()
p2 <- ggplot(model_data, aes(y = wealth)) +
geom_boxplot() +
scale_y_continuous(labels = scales::dollar_format()) +
labs(y = "GDP per Capita", title = "GDP (Raw)") +
theme_minimal()
p1 | p2









