library(ggplot2)
library(ggforma)

use <- data.frame(centre = rep(c(0, 3), each = 3),
                  mode = rep(c("Walk", "Cycle", "Rail"), 2), trips = c(24, 36, 40, 7, 8, 5))
colours <- setNames(forma_palette(5)[2:4], use$mode[1:3])
p <- ggplot(use, aes(x0 = centre, slice = mode, weight = trips)) +
  geom_pie(aes(fill = mode), r = 1, r0 = 0.25) +
  stat_pie(aes(label = after_stat(percent_label)), geom = "text", r = 1, r0 = 0.25) +
  scale_fill_manual(values = colours) + coord_fixed() + theme_void() +
  labs(title = "Local travel at two sites", subtitle = "Site A: 100 trips       Site B: 20 trips", fill = "Mode") +
  theme(legend.position = "bottom", plot.margin = margin(14, 14, 14, 14))
p
