# Ensure regions appear in a consistent order for clearer interpretation
line_regions <- region_series |>
mutate(
country = factor(country, levels = c("Asia (excl. China and India)", "China", "India"))) |>
# Draw the line plot
ggplot(aes(x = year, y = mismanaged_tons / 1e6, color = country)) +
geom_line(size = 1.2) +
geom_point(size = 2.5) +
scale_x_continuous(breaks = 2010:2019) +
scale_y_continuous(labels = scales::comma) +
scale_color_manual(
values = c("Asia (excl. China and India)" = "#F4C7CE", "China" = "#CFE8D6", "India" = "#A7C7E7")) +
labs(title = "Mismanaged Plastic Waste in Asia, China, and India (2010–2019)",
x = "Year",
y = "Mismanaged plastic waste (million tons)",
color = "Region") +
theme_bw() +
theme(
plot.title = element_text(face = "bold", hjust = 0.5, size = 14),
axis.title = element_text(size = 11),
axis.text = element_text(size = 9),
legend.position = "bottom",
legend.title = element_text(size = 10, face = "bold"),
legend.text = element_text(size = 9),
plot.margin = margin(10, 10, 10, 10) # adds breathing room
)