library(webr)
data <- as.data.frame(Titanic)
pd = data %>%
group_by(Class, Survived) %>%
summarise(n = sum(Freq))
PieDonut(pd, aes(Class, Survived, count = n),
labelposition = 0,
r0 = 0.5,
r1 = 0.95,
title = "Titanic: Survial by Class")
This donut fig was made With webr package, is it possible to polt such an interactive fig with plotly or highchart.


