I am looking to create a 3D pie chart using ggplot2. The only way I've seen this can be done is using the ggthreed package (https://coolbutuseless.github.io/2018/11/13/ggthreed-3d-pie-charts/).
I've tried running the source code for a faceted 3D plot as follows
library(ggthreed)
library(tidyverse)
ggplot(diamonds) +
geom_threedpie(aes(as.factor(cut))) +
facet_wrap(~clarity, labeller = label_both) +
labs(title = "Distribution of Diamond Cuts by Clarity") +
scale_fill_brewer(name = "Cut", palette = 'Set2') +
theme_void()
however, it gives the following error
Warning: Unknown or uninitialised column: 'subgroup'.
The plots also don't appear in the output (see below). Anyone know how to resolve this issue? (Or to create 3D pie charts in ggplot2 with a package different to ggthreed?
