library(ggplot2)library(dplyr)
%>% as_tibble() %>% UCBAdmissions ggplot(aes(x = 1, y = n, fill = Admit)) + geom_col(position = "fill", color = "white", linewidth = 1) + facet_grid(Gender ~ Dept, switch = "y") + scale_x_continuous(limits = c(0, 1.5)) + scale_fill_manual(values = c("steelblue2", "firebrick2")) + coord_polar(theta = "y") + labs( fill = NULL, title = "Student admissions to UC Berkeley six largest departments in 1973\n") + theme_void() + theme( legend.position = "bottom", strip.text = element_text(size = 13, face = "bold"), strip.text.y = element_text(angle = 90), plot.title = element_text(color = "grey50", face = "italic", hjust = .5))
Use ggplot2 Exploded Donut Plot to Visualize Proportions

The exploded donut plots are generated by the code below. Check here for a complete guide to create pies and donut plots.
Continue Exploring — 🚀 one level up!
Check these exploded donut plots in faceted layout that visualizes the GDP contribution proportion of the top 4 countries separately in each continent.
Check the following exploded donut plots in a U.S. map layout that visualizes the state-wise voting results of the 2016 Presidential Election between Hillary Clinton and Donald Trump .