1. Purpose.

The purpose of this noteboook is to illustrate how the sunburstR package can be used to visualise proportional hierarchial category breakdowns.

2. Load libraries and view practice dataset.

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)
Legend