sunburstR trainingThe purpose of this noteboook is to illustrate how the sunburstR package can be used to visualise proportional hierarchial category breakdowns.
library(tidyverse)
library(sunburstR)
source <- c("agriculture-enteric-cow", "agriculture-enteric-sheep", "agriculture-nitrous", "transport-car", "transport-train")
size <- c(20, 3, 5, 15, 1)
ghg <- data.frame(source, size)
sunburst(ghg, percent = T, count = T)